public class RBListBinder
extends java.lang.Object
implements javax.swing.event.ListSelectionListener
Modifier and Type | Class and Description |
---|---|
static class |
RBListBinder.BinderListModel
List Model implementation for lists using bind key.
|
Constructor and Description |
---|
RBListBinder()
Create new binder.
|
Modifier and Type | Method and Description |
---|---|
void |
fireContentsChanged()
Called when binder's source list has changed.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
static RBListBinder |
getBinder(javax.swing.JComponent aComponent)
Returns the binder for a given component.
|
java.lang.String |
getBindKey()
Returns the bind key for this binder.
|
java.util.List |
getList()
Return the list that this binder is brokering.
|
java.lang.String |
getListKey()
Returns the list key for this binder.
|
java.lang.String |
getListKeyDeep()
Returns the list key from master datasource to this binder.
|
javax.swing.ListModel |
getListModel(javax.swing.JList aList)
Returns a list model for given list.
|
javax.swing.ListSelectionModel |
getListSelectionModel()
Returns the list selection model for this binder.
|
RJPanel |
getMaster()
Returns the panel that loaded this binder.
|
java.lang.String |
getName()
Returns the name of this binder.
|
RBListBinder |
getParentBinder()
Returns the parent binder for this binder.
|
java.lang.String |
getParentBinderName()
Returns the binder name for this binder.
|
java.lang.Object |
getSelectedObject()
Return the selected object in the list that this binder is brokering.
|
void |
setBindKey(java.lang.String aBindKey)
Sets the bind key for this binder.
|
void |
setMaster(RJPanel aPanel)
Sets the panel that loaded this binder.
|
void |
setName(java.lang.String aName)
Sets the name of this binder.
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
void |
valueChanged(javax.swing.event.ListSelectionEvent anEvent)
Called when list selection changes.
|
public RJPanel getMaster()
public void setMaster(RJPanel aPanel)
public java.lang.String getName()
public void setName(java.lang.String aName)
public java.lang.String getBindKey()
public void setBindKey(java.lang.String aBindKey)
public RBListBinder getParentBinder()
public java.lang.String getParentBinderName()
public java.lang.String getListKey()
public java.lang.String getListKeyDeep()
public java.util.List getList()
public java.lang.Object getSelectedObject()
public javax.swing.ListModel getListModel(javax.swing.JList aList)
public javax.swing.ListSelectionModel getListSelectionModel()
public static RBListBinder getBinder(javax.swing.JComponent aComponent)
public void valueChanged(javax.swing.event.ListSelectionEvent anEvent)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void fireContentsChanged()
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)