XWT set Datetime/Combo [message #1396510] |
Tue, 08 July 2014 07:55  |
Eclipse User |
|
|
|
Hello there,
I think I'm the only active or the only user of XWT with a lot of questions!
My question is what do I need and how is it done.
How do I set the date of a datetime widget and how do I set the selection of a combo widget?
Can I use java date for datetime? What is needed for the Combo?
Databinding for the text widgets works fine.
Xwt code:
<Composite.layout>
<FillLayout/>
</Composite.layout>
<p1:Form background="COLOR_WHITE">
<p1:Form.body>
<p1:Form.body.layout>
<GridLayout numColumns="2"/>
</p1:Form.body.layout>
<Label text="Datum:" background="COLOR_WHITE" />
<DateTime x:Style="BORDER | DROP_DOWN">
</DateTime>
<Label text="Betrag (in Euro):" background="COLOR_WHITE" />
<Text x:Style="BORDER" text="{Binding path=amount}" >
<Text.layoutData>
<GridData horizontalAlignment="FILL" grabExcessHorizontalSpace="true"/>
</Text.layoutData>
</Text>
<Label text="Steuerschlüssel:" background="COLOR_WHITE"/>
<ComboViewer x:Style="READ_ONLY" >
<ComboViewer.combo>
<ComboViewer.combo.items>
<p2:String>Vorsteuer 7%</p2:String>
<p2:String>Vorsteuer 19%</p2:String>
<p2:String>Umsatzsteuer 7%</p2:String>
<p2:String>Umsatzsteuer 19%</p2:String>
</ComboViewer.combo.items>
</ComboViewer.combo>
</ComboViewer>
<Label name="belegtext" text="Belegtext:" background="COLOR_WHITE"/>
<Text x:Style="BORDER | MULTI" text="{Binding path=belegtext}">
<Text.layoutData>
<GridData horizontalAlignment="FILL" grabExcessHorizontalSpace="true" heightHint="120"/>
</Text.layoutData>
</Text>
</p1:Form.body>
</p1:Form>
</Composite>
Greetings Sascha.
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05851 seconds