|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.swt.GlazedListsSWT
public final class GlazedListsSWT
A factory for creating all sorts of objects to be used with Glazed Lists.
Method Summary | ||
---|---|---|
static
|
beanItemFormat(String property)
Creates a new ItemFormat that uses the string value of a JavaBean
property as the formatted value of a list element. |
|
static
|
beanItemFormat(String property,
String valueForNullElement)
Creates a new ItemFormat that uses the string value of a JavaBean
property as the formatted value of a list element. |
|
static
|
eventComboViewer(EventList<E> source,
org.eclipse.swt.widgets.Combo combo)
Binds the contents of a Combo component to an EventList
source. |
|
static
|
eventComboViewer(EventList<E> source,
org.eclipse.swt.widgets.Combo combo,
ItemFormat<? super E> itemFormat)
Binds the contents of a Combo component to an EventList
source. |
|
static
|
eventComboViewerWithThreadProxyList(EventList<E> source,
org.eclipse.swt.widgets.Combo combo)
Binds the contents of a Combo component to an EventList
source. |
|
static
|
eventComboViewerWithThreadProxyList(EventList<E> source,
org.eclipse.swt.widgets.Combo combo,
ItemFormat<? super E> itemFormat)
Binds the contents of a Combo component to an EventList
source. |
|
static
|
eventListViewer(EventList<E> source,
org.eclipse.swt.widgets.List list)
Creates a new List that displays and responds to changes in the source list. |
|
static
|
eventListViewer(EventList<E> source,
org.eclipse.swt.widgets.List list,
ItemFormat<? super E> itemFormat)
Creates a new List that displays and responds to changes in the source list. |
|
static
|
eventListViewerWithThreadProxyList(EventList<E> source,
org.eclipse.swt.widgets.List list)
Creates a new List that displays and responds to changes in the source list. |
|
static
|
eventListViewerWithThreadProxyList(EventList<E> source,
org.eclipse.swt.widgets.List list,
ItemFormat<? super E> itemFormat)
Creates a new List that displays and responds to changes in the source list. |
|
static
|
eventTableViewer(EventList<E> source,
org.eclipse.swt.widgets.Table table,
TableFormat<? super E> tableFormat)
Creates a new viewer for the given Table that updates the table
contents in response to changes on the specified EventList . |
|
static
|
eventTableViewer(EventList<E> source,
org.eclipse.swt.widgets.Table table,
TableFormat<? super E> tableFormat,
TableItemConfigurer<? super E> tableItemConfigurer)
Creates a new viewer for the given Table that updates the table
contents in response to changes on the specified EventList . |
|
static
|
eventTableViewerWithThreadProxyList(EventList<E> source,
org.eclipse.swt.widgets.Table table,
TableFormat<? super E> tableFormat)
Creates a new viewer for the given Table that updates the table
contents in response to changes on the specified EventList . |
|
static
|
eventTableViewerWithThreadProxyList(EventList<E> source,
org.eclipse.swt.widgets.Table table,
TableFormat<? super E> tableFormat,
TableItemConfigurer<? super E> tableItemConfigurer)
Creates a new viewer for the given Table that updates the table
contents in response to changes on the specified EventList . |
|
static boolean |
isSWTThreadProxyList(EventList list)
Returns true if list is an EventList that fires
all of its update events from the SWT event dispatch thread. |
|
static org.eclipse.swt.events.SelectionListener |
lowerThresholdViewer(ThresholdList thresholdList,
org.eclipse.swt.widgets.Scale scale)
Creates a viewer that manipulates the lower bound of the specified ThresholdList based on changes to Scale selection. |
|
static org.eclipse.swt.events.SelectionListener |
lowerThresholdViewer(ThresholdList thresholdList,
org.eclipse.swt.widgets.Slider slider)
Creates a viewer that manipulates the lower bound of the specified ThresholdList based on changes to the Slider. |
|
static
|
swtThreadProxyList(EventList<E> source,
org.eclipse.swt.widgets.Display display)
Wraps the source in an EventList that fires all of its update events
from the SWT user interface thread. |
|
static org.eclipse.swt.events.SelectionListener |
upperThresholdViewer(ThresholdList thresholdList,
org.eclipse.swt.widgets.Scale scale)
Creates a viewer that manipulates the upper bound of the specified ThresholdList based on changes to Scale selection. |
|
static org.eclipse.swt.events.SelectionListener |
upperThresholdViewer(ThresholdList thresholdList,
org.eclipse.swt.widgets.Slider slider)
Creates a viewer that manipulates the upper bound of the specified ThresholdList based on changes to the Slider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <E> TransformedList<E,E> swtThreadProxyList(EventList<E> source, org.eclipse.swt.widgets.Display display)
EventList
that fires all of its update events
from the SWT user interface thread.
public static boolean isSWTThreadProxyList(EventList list)
list
is an EventList
that fires
all of its update events from the SWT event dispatch thread.
public static <E> ItemFormat<E> beanItemFormat(String property)
ItemFormat
that uses the string value of a JavaBean
property as the formatted value of a list element. If the list element or
the propery value is null
, the emtpy string is returned.
property
- the JavaBean property namepublic static <E> ItemFormat<E> beanItemFormat(String property, String valueForNullElement)
ItemFormat
that uses the string value of a JavaBean
property as the formatted value of a list element. If the list element or
the propery value is null
, the given value is returned.
property
- the JavaBean property namevalueForNullElement
- string value to be used for a null
element or
property valuepublic static org.eclipse.swt.events.SelectionListener lowerThresholdViewer(ThresholdList thresholdList, org.eclipse.swt.widgets.Slider slider)
public static org.eclipse.swt.events.SelectionListener lowerThresholdViewer(ThresholdList thresholdList, org.eclipse.swt.widgets.Scale scale)
public static org.eclipse.swt.events.SelectionListener upperThresholdViewer(ThresholdList thresholdList, org.eclipse.swt.widgets.Slider slider)
public static org.eclipse.swt.events.SelectionListener upperThresholdViewer(ThresholdList thresholdList, org.eclipse.swt.widgets.Scale scale)
public static <E> DefaultEventTableViewer<E> eventTableViewer(EventList<E> source, org.eclipse.swt.widgets.Table table, TableFormat<? super E> tableFormat)
Table
that updates the table
contents in response to changes on the specified EventList
. The
Table
is formatted with the specified TableFormat
.
The returned viewer is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the SWT event handler thread.
To do this programmatically, use Display.syncExec(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
swtThreadProxyList(EventList, Display)
.
source
- the EventList that provides the row objectstable
- the Table viewing the source objectstableFormat
- the object responsible for extracting column data
from the row objectspublic static <E> DefaultEventTableViewer<E> eventTableViewer(EventList<E> source, org.eclipse.swt.widgets.Table table, TableFormat<? super E> tableFormat, TableItemConfigurer<? super E> tableItemConfigurer)
Table
that updates the table
contents in response to changes on the specified EventList
. The
Table
is formatted with the specified TableFormat
.
The returned viewer is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the SWT event handler thread.
To do this programmatically, use Display.syncExec(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
swtThreadProxyList(EventList, Display)
.
source
- the EventList that provides the row objectstable
- the Table viewing the source objectstableFormat
- the object responsible for extracting column data
from the row objectstableItemConfigurer
- responsible for configuring table itemspublic static <E> DefaultEventTableViewer<E> eventTableViewerWithThreadProxyList(EventList<E> source, org.eclipse.swt.widgets.Table table, TableFormat<? super E> tableFormat)
Table
that updates the table
contents in response to changes on the specified EventList
. The
Table
is formatted with the specified TableFormat
.
While holding a read lock, this method wraps the source list using
swtThreadProxyList(EventList, Display)
.
The returned viewer is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread.
source
- the EventList that provides the row objectstable
- the Table viewing the source objectstableFormat
- the object responsible for extracting column data
from the row objectspublic static <E> DefaultEventTableViewer<E> eventTableViewerWithThreadProxyList(EventList<E> source, org.eclipse.swt.widgets.Table table, TableFormat<? super E> tableFormat, TableItemConfigurer<? super E> tableItemConfigurer)
Table
that updates the table
contents in response to changes on the specified EventList
. The
Table
is formatted with the specified TableFormat
.
While holding a read lock, this method wraps the source list using
swtThreadProxyList(EventList, Display)
.
The returned viewer is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread.
source
- the EventList that provides the row objectstable
- the Table viewing the source objectstableFormat
- the object responsible for extracting column data
from the row objectstableItemConfigurer
- responsible for configuring table itemspublic static <E> DefaultEventListViewer<E> eventListViewer(EventList<E> source, org.eclipse.swt.widgets.List list)
The returned viewer is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the SWT event handler thread.
To do this programmatically, use Display.syncExec(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
swtThreadProxyList(EventList, Display)
.
source
- the EventList that provides the elementslist
- the listpublic static <E> DefaultEventListViewer<E> eventListViewer(EventList<E> source, org.eclipse.swt.widgets.List list, ItemFormat<? super E> itemFormat)
ItemFormat
.
The returned viewer is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the SWT event handler thread.
To do this programmatically, use Display.syncExec(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
swtThreadProxyList(EventList, Display)
.
source
- the EventList that provides the elementslist
- the listitemFormat
- an ItemFormat
for formatting the displayed valuespublic static <E> DefaultEventListViewer<E> eventListViewerWithThreadProxyList(EventList<E> source, org.eclipse.swt.widgets.List list)
swtThreadProxyList(EventList, Display)
.
The returned viewer is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread.
source
- the EventList that provides the elementslist
- the listpublic static <E> DefaultEventListViewer<E> eventListViewerWithThreadProxyList(EventList<E> source, org.eclipse.swt.widgets.List list, ItemFormat<? super E> itemFormat)
ItemFormat
.
While holding a read lock, this method wraps the source list using
swtThreadProxyList(EventList, Display)
.
The returned viewer is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread.
source
- the EventList that provides the elementslist
- the listitemFormat
- an ItemFormat
for formatting the displayed valuespublic static <E> DefaultEventComboViewer<E> eventComboViewer(EventList<E> source, org.eclipse.swt.widgets.Combo combo)
Combo
component to an EventList
source. This allows the selection choices in a Combo
to change
dynamically to reflect chances to the source EventList
. The
String
values displayed in the Combo
compoment will be
the result of calling toString() on the Objects found in source.
The returned viewer is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the SWT event handler thread.
To do this programmatically, use Display.syncExec(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
swtThreadProxyList(EventList, Display)
.
source
- the EventList that provides the elementscombo
- the combo boxpublic static <E> DefaultEventComboViewer<E> eventComboViewer(EventList<E> source, org.eclipse.swt.widgets.Combo combo, ItemFormat<? super E> itemFormat)
Combo
component to an EventList
source. This allows the selection choices in a Combo
to change
dynamically to reflect chances to the source EventList
. The
String
values displayed in the Combo
component will be
formatted using the provided ItemFormat
.
The returned viewer is not thread-safe. Unless otherwise
noted, all methods are only safe to be called from the SWT event handler thread.
To do this programmatically, use Display.syncExec(Runnable)
and
wrap the source list (or some part of the source list's pipeline) using
swtThreadProxyList(EventList, Display)
.
source
- the EventList that provides the elementscombo
- the combo boxitemFormat
- an ItemFormat
for formatting the displayed valuespublic static <E> DefaultEventComboViewer<E> eventComboViewerWithThreadProxyList(EventList<E> source, org.eclipse.swt.widgets.Combo combo)
Combo
component to an EventList
source. This allows the selection choices in a Combo
to change
dynamically to reflect chances to the source EventList
. The
String
values displayed in the Combo
compoment will be
the result of calling toString() on the Objects found in source.
While holding a read lock, this method wraps the source list using
swtThreadProxyList(EventList, Display)
.
The returned viewer is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread.
source
- the EventList that provides the elementscombo
- the combo boxpublic static <E> DefaultEventComboViewer<E> eventComboViewerWithThreadProxyList(EventList<E> source, org.eclipse.swt.widgets.Combo combo, ItemFormat<? super E> itemFormat)
Combo
component to an EventList
source. This allows the selection choices in a Combo
to change
dynamically to reflect chances to the source EventList
. The
String
values displayed in the Combo
component will be
formatted using the provided ItemFormat
.
While holding a read lock, this method wraps the source list using
swtThreadProxyList(EventList, Display)
.
The returned viewer is not thread-safe. Unless otherwise noted, all methods are only safe to be called from the SWT event handler thread.
source
- the EventList that provides the elementscombo
- the combo boxitemFormat
- an ItemFormat
for formatting the displayed values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |