[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [sapphire-dev] switching-panel | 
Unfortunately, not yet possible to do this. The only controller types are enum value and list selection. Could you add this usecase to this bug that seeks to generalize swiching-panel?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329063
Also, please post questions like this to sapphire-dev@xxxxxxxxxxx at this point.
- Konstantin
-----Original Message-----
From: Danny Ju [mailto:danny.ju@xxxxxxxxxx] 
Sent: Monday, November 15, 2010 9:48 AM
To: Konstantin L. Komissarchik
Subject: switching-panel
Hi Konstantin,
The server a UI has different contents depending on the 
Remote property. I am thinking to to use switching panel
to achieve it. I found examples with user defined enum types,
But since the Remote property is a simple boolean,
is it possible I can do sth like this without a new enum type?
	          <switching-panel>
   	            <enum-controller>
		            <property>Remote</property>
		        </enum-controller>
	            <panel>
	              <key>Boolean.TRUE</key>
	              <content>
                    <separator>
			          <label>Remote Details</label>
                    </separator>
	              </content>
	            </panel>
	            <panel>
	              <key>Boolean.FALSE</key>
	              <content>
                    <separator>
			          <label>Local Details</label>
                    </separator>
	              </content>
	            </panel>
	          </switching-panel>
-Danny