Class WidgetProperties
java.lang.Object
org.eclipse.jface.databinding.swt.typed.WidgetProperties
A factory for creating properties of SWT
widgets.- Since:
- 1.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S extends Control>
IWidgetValueProperty<S, Color> Returns a value property for observing the background color of aControl.static <S extends Control>
IWidgetValueProperty<S, Rectangle> bounds()Returns a value property for observing the bounds of aControl.static IWidgetValueProperty<Button, Boolean> Returns a value property for observing the selection state of aButton.static IWidgetValueProperty<CCombo, String> Returns a value property for observing the selection state of aCCombo.static IWidgetValueProperty<Combo, String> Returns a value property for observing the selection state of aCombo.static IWidgetValueProperty<DateTime, Date> Returns a value property for observing the selection state of aDateTime.static <S extends Control>
IWidgetValueProperty<S, Boolean> editable()Returns a value property for observing the editable state of aCCombo(since 1.6),StyledText(since 1.6), orText.static <S extends Widget>
IWidgetValueProperty<S, Boolean> enabled()static <S extends Control>
IWidgetValueProperty<S, Boolean> focused()Returns a value property for observing the focus state of aControl.static <S extends Control>
IWidgetValueProperty<S, Font> font()Returns a value property for observing the font of aControl.static <S extends Control>
IWidgetValueProperty<S, Color> Returns a value property for observing the foreground color of aControl.static <S extends Widget>
IWidgetValueProperty<S, Image> image()static <S extends Control>
IWidgetListProperty<S, String> items()static IWidgetValueProperty<List, String> Returns a value property for observing the selection state of aList.static IWidgetValueProperty<DateTime, LocalDate> Returns a value property for observing the selection state of aDateTimewith theSWT.DATEorSWT.CALENDARstyle.static IWidgetValueProperty<DateTime, LocalTime> static <S extends Control>
IWidgetValueProperty<S, Point> location()Returns a value property for observing the location of aControl.static <S extends Control>
IWidgetValueProperty<S, Integer> maximum()static IWidgetValueProperty<MenuItem, Boolean> Returns a value property for observing the selection state of aMenuItem.static <S extends Widget>
IWidgetValueProperty<S, String> message()static <S extends Control>
IWidgetValueProperty<S, Integer> minimum()static IWidgetValueProperty<Scale, Integer> Returns a value property for observing the selection state of aScale.static <S extends Control>
IWidgetValueProperty<S, Integer> static <S extends Control>
IWidgetValueProperty<S, Point> size()Returns a value property for observing the size of aControl.static IWidgetValueProperty<Slider, Integer> Returns a value property for observing the selection state of aSlider.static IWidgetValueProperty<Spinner, Integer> Returns a value property for observing the selection state of aSpinner.static <S extends Widget>
IWidgetValueProperty<S, String> text()static <S extends Widget>
IWidgetValueProperty<S, String> text(int event) Returns a value property for observing the text of aStyledTextorText.static <S extends Widget>
IWidgetValueProperty<S, String> text(int... events) Returns a value property for observing the text of aStyledTextorText.static <S extends Widget>
IWidgetValueProperty<S, String> Returns a value property for observing the tooltip text of aCTabItem,Control,TabItem,TableColumn,ToolItem,TrayItemorTreeColumn.static <S extends Widget>
IWidgetValueProperty<S, Boolean> visible()static <S extends Widget,T>
IWidgetValueProperty<S, T>
-
Constructor Details
-
WidgetProperties
public WidgetProperties()
-
-
Method Details
-
background
Returns a value property for observing the background color of aControl.- Returns:
- a value property for observing the background color of a
Control.
-
bounds
Returns a value property for observing the bounds of aControl.- Returns:
- a value property for observing the bounds of a
Control.
-
editable
Returns a value property for observing the editable state of aCCombo(since 1.6),StyledText(since 1.6), orText.- Returns:
- a value property for observing the editable state of a
CCombo,StyledText, orText.
-
enabled
-
focused
Returns a value property for observing the focus state of aControl.- Returns:
- a value property for observing the focus state of a
Control.
-
font
Returns a value property for observing the font of aControl.- Returns:
- a value property for observing the font of a
Control.
-
foreground
Returns a value property for observing the foreground color of aControl.- Returns:
- a value property for observing the foreground color of a
Control.
-
image
-
items
-
location
Returns a value property for observing the location of aControl.- Returns:
- a value property for observing the location of a
Control.
-
maximum
-
message
-
minimum
-
widgetSelection
-
dateTimeSelection
Returns a value property for observing the selection state of aDateTime.- Returns:
- a value property for observing the selection state of a
DateTime. - Since:
- 1.9
-
localDateSelection
Returns a value property for observing the selection state of aDateTimewith theSWT.DATEorSWT.CALENDARstyle.- Returns:
- a value property for observing the selection state of a
DateTime. - Since:
- 1.12
-
localTimeSelection
- Returns:
- a value property for observing the selection state of a
DateTime. - Since:
- 1.12
-
buttonSelection
Returns a value property for observing the selection state of aButton.- Returns:
- a value property for observing the selection state of a
Button. - Since:
- 1.9
-
comboSelection
Returns a value property for observing the selection state of aCombo.- Returns:
- a value property for observing the selection state of a
Combo. - Since:
- 1.9
-
ccomboSelection
Returns a value property for observing the selection state of aCCombo.- Returns:
- a value property for observing the selection state of a
CCombo. - Since:
- 1.9
-
listSelection
Returns a value property for observing the selection state of aList.- Returns:
- a value property for observing the selection state of a
List. - Since:
- 1.9
-
scaleSelection
Returns a value property for observing the selection state of aScale.- Returns:
- a value property for observing the selection state of a
Scale. - Since:
- 1.9
-
sliderSelection
Returns a value property for observing the selection state of aSlider.- Returns:
- a value property for observing the selection state of a
Slider. - Since:
- 1.9
-
spinnerSelection
Returns a value property for observing the selection state of aSpinner.- Returns:
- a value property for observing the selection state of a
Spinner. - Since:
- 1.9
-
singleSelectionIndex
Returns a value property for observing the single selection index of aCCombo,Combo,ListorTable.- Returns:
- a value property for the single selection index of a SWT Combo.
-
size
Returns a value property for observing the size of aControl.- Returns:
- a value property for observing the size of a
Control.
-
text
-
text
Returns a value property for observing the text of aStyledTextorText.- Parameters:
event- the SWT event type to register for change events. May beSWT.None,SWT.Modify,SWT.FocusOutorSWT.DefaultSelection.- Returns:
- a value property for observing the text of a
StyledTextorText.
-
text
Returns a value property for observing the text of aStyledTextorText.- Parameters:
events- varags of SWT event types to register for change events. May includeSWT.None,SWT.Modify,SWT.FocusOutorSWT.DefaultSelection.- Returns:
- a value property for observing the text of a
StyledTextorText.
-
tooltipText
Returns a value property for observing the tooltip text of aCTabItem,Control,TabItem,TableColumn,ToolItem,TrayItemorTreeColumn.- Returns:
- a value property for observing the tooltip text of a
CTabItem,Control,TabItem,TableColumn,ToolItem,TrayItemorTreeColumn.
-
visible
-