Package com.ribs
Class RBListBinder
java.lang.Object
com.ribs.RBListBinder
- All Implemented Interfaces:
- EventListener,- ListSelectionListener
This class manages a list of objects provided by a rib file's owner to facilitate binding to UI controls.
 It provides access to the list, to the currently selected object and a list selection model. Binders can also be
 chained, so that a binder can get a sublist from another binder's selected object.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classList Model implementation for lists using bind key.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled when binder's source list has changed.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.static RBListBindergetBinder(JComponent aComponent) Returns the binder for a given component.Returns the bind key for this binder.getList()Return the list that this binder is brokering.Returns the list key for this binder.Returns the list key from master datasource to this binder.getListModel(JList aList) Returns a list model for given list.Returns the list selection model for this binder.Returns the panel that loaded this binder.getName()Returns the name of this binder.Returns the parent binder for this binder.Returns the binder name for this binder.Return the selected object in the list that this binder is brokering.voidsetBindKey(String aBindKey) Sets the bind key for this binder.voidSets the panel that loaded this binder.voidSets the name of this binder.toXML(RXArchiver anArchiver) XML archival.voidvalueChanged(ListSelectionEvent anEvent) Called when list selection changes.
- 
Constructor Details- 
RBListBinderpublic RBListBinder()Create new binder.
 
- 
- 
Method Details- 
getMasterReturns the panel that loaded this binder.
- 
setMasterSets the panel that loaded this binder.
- 
getNameReturns the name of this binder.
- 
setNameSets the name of this binder.
- 
getBindKeyReturns the bind key for this binder.
- 
setBindKeySets the bind key for this binder.
- 
getParentBinderReturns the parent binder for this binder.
- 
getParentBinderNameReturns the binder name for this binder.
- 
getListKeyReturns the list key for this binder.
- 
getListKeyDeepReturns the list key from master datasource to this binder.
- 
getListReturn the list that this binder is brokering.
- 
getSelectedObjectReturn the selected object in the list that this binder is brokering.
- 
getListModelReturns a list model for given list.
- 
getListSelectionModelReturns the list selection model for this binder.
- 
getBinderReturns the binder for a given component.
- 
valueChangedCalled when list selection changes.- Specified by:
- valueChangedin interface- ListSelectionListener
 
- 
fireContentsChangedpublic void fireContentsChanged()Called when binder's source list has changed. Can be called by owner/controller or by a parent binder.
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-