Package com.ribs
Class RBListBinder
- java.lang.Object
- 
- com.ribs.RBListBinder
 
- 
- All Implemented Interfaces:
- java.util.EventListener,- javax.swing.event.ListSelectionListener
 
 public class RBListBinder extends java.lang.Object implements javax.swing.event.ListSelectionListenerThis 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 Classes Modifier and Type Class Description static classRBListBinder.BinderListModelList Model implementation for lists using bind key.
 - 
Constructor SummaryConstructors Constructor Description RBListBinder()Create new binder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireContentsChanged()Called when binder's source list has changed.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.static RBListBindergetBinder(javax.swing.JComponent aComponent)Returns the binder for a given component.java.lang.StringgetBindKey()Returns the bind key for this binder.java.util.ListgetList()Return the list that this binder is brokering.java.lang.StringgetListKey()Returns the list key for this binder.java.lang.StringgetListKeyDeep()Returns the list key from master datasource to this binder.javax.swing.ListModelgetListModel(javax.swing.JList aList)Returns a list model for given list.javax.swing.ListSelectionModelgetListSelectionModel()Returns the list selection model for this binder.RJPanelgetMaster()Returns the panel that loaded this binder.java.lang.StringgetName()Returns the name of this binder.RBListBindergetParentBinder()Returns the parent binder for this binder.java.lang.StringgetParentBinderName()Returns the binder name for this binder.java.lang.ObjectgetSelectedObject()Return the selected object in the list that this binder is brokering.voidsetBindKey(java.lang.String aBindKey)Sets the bind key for this binder.voidsetMaster(RJPanel aPanel)Sets the panel that loaded this binder.voidsetName(java.lang.String aName)Sets the name of this binder.RXElementtoXML(RXArchiver anArchiver)XML archival.voidvalueChanged(javax.swing.event.ListSelectionEvent anEvent)Called when list selection changes.
 
- 
- 
- 
Method Detail- 
getMasterpublic RJPanel getMaster() Returns the panel that loaded this binder.
 - 
setMasterpublic void setMaster(RJPanel aPanel) Sets the panel that loaded this binder.
 - 
getNamepublic java.lang.String getName() Returns the name of this binder.
 - 
setNamepublic void setName(java.lang.String aName) Sets the name of this binder.
 - 
getBindKeypublic java.lang.String getBindKey() Returns the bind key for this binder.
 - 
setBindKeypublic void setBindKey(java.lang.String aBindKey) Sets the bind key for this binder.
 - 
getParentBinderpublic RBListBinder getParentBinder() Returns the parent binder for this binder.
 - 
getParentBinderNamepublic java.lang.String getParentBinderName() Returns the binder name for this binder.
 - 
getListKeypublic java.lang.String getListKey() Returns the list key for this binder.
 - 
getListKeyDeeppublic java.lang.String getListKeyDeep() Returns the list key from master datasource to this binder.
 - 
getListpublic java.util.List getList() Return the list that this binder is brokering.
 - 
getSelectedObjectpublic java.lang.Object getSelectedObject() Return the selected object in the list that this binder is brokering.
 - 
getListModelpublic javax.swing.ListModel getListModel(javax.swing.JList aList) Returns a list model for given list.
 - 
getListSelectionModelpublic javax.swing.ListSelectionModel getListSelectionModel() Returns the list selection model for this binder.
 - 
getBinderpublic static RBListBinder getBinder(javax.swing.JComponent aComponent) Returns the binder for a given component.
 - 
valueChangedpublic void valueChanged(javax.swing.event.ListSelectionEvent anEvent) Called when list selection changes.- Specified by:
- valueChangedin interface- javax.swing.event.ListSelectionListener
 
 - 
fireContentsChangedpublic void fireContentsChanged() Called when binder's source list has changed. Can be called by owner/controller or by a parent binder.
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 
- 
 
-