|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.dualselector.DualListSelector
public class DualListSelector
DualListSelector implements a dual selector with two lists.
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the Examples Site.
Field Summary | |
---|---|
protected javax.swing.JList |
sourceJList
the source JList component |
protected javax.swing.JList |
targetJList
the target JList component |
Constructor Summary | |
---|---|
DualListSelector()
Constructs a DualListSelector object. |
Method Summary | |
---|---|
protected void |
addListeners()
Adds a list selection listener to both lists. |
javax.swing.ListModel |
getModel()
Returns the ListModel for the source component. |
javax.swing.ListCellRenderer |
getSourceCellRenderer()
Returns the cell renderer for the source component. |
javax.swing.ListCellRenderer |
getTargetCellRenderer()
Returns the cell renderer for the target component. |
javax.swing.ListModel |
getTargetModel()
Returns the ListModel for the target component. |
boolean |
isDefaultModelAttached()
Returns true if the default model is being used, false otherwise. |
void |
setDefaultTargetModel(javax.swing.DefaultListModel listModel)
Sets the default model for the target list. |
void |
setModel(javax.swing.ListModel listModel)
Sets the ListModel for the source component. |
void |
setSourceCellRenderer(javax.swing.ListCellRenderer newValue)
Sets the cell renderer for the source component. |
void |
setTargetCellRenderer(javax.swing.ListCellRenderer newValue)
Sets the cell renderer for the target component. |
void |
setTargetModel(javax.swing.ListModel listModel)
Sets the ListModel for the target component. |
void |
valueChanged(javax.swing.event.ListSelectionEvent ie)
Event handler for the ListSelectionEvent's received. |
Field Detail |
---|
protected javax.swing.JList sourceJList
protected javax.swing.JList targetJList
Constructor Detail |
---|
public DualListSelector()
Method Detail |
---|
protected void addListeners()
addListeners
in class BaseDualSelector
public javax.swing.ListCellRenderer getSourceCellRenderer()
setSourceCellRenderer(javax.swing.ListCellRenderer)
public void setSourceCellRenderer(javax.swing.ListCellRenderer newValue)
newValue
- the new value for the the source component cell renderergetSourceCellRenderer()
public javax.swing.ListCellRenderer getTargetCellRenderer()
setTargetCellRenderer(javax.swing.ListCellRenderer)
public void setTargetCellRenderer(javax.swing.ListCellRenderer newValue)
newValue
- the new value for the target component cell renderergetTargetCellRenderer()
public javax.swing.ListModel getModel()
setTargetModel(javax.swing.ListModel)
public void setModel(javax.swing.ListModel listModel)
listModel
- the ListModel to set for the source componentsetTargetModel(javax.swing.ListModel)
public javax.swing.ListModel getTargetModel()
setTargetModel(javax.swing.ListModel)
public void setDefaultTargetModel(javax.swing.DefaultListModel listModel)
listModel
- the target list modelpublic void setTargetModel(javax.swing.ListModel listModel) throws java.lang.IllegalArgumentException
listModel
- the ListModel to set for the target component
java.lang.IllegalArgumentException
setModel(javax.swing.ListModel)
public boolean isDefaultModelAttached()
isDefaultModelAttached
in interface ViewDefaultModel
ViewDefaultModel
public void valueChanged(javax.swing.event.ListSelectionEvent ie)
valueChanged
in interface javax.swing.event.ListSelectionListener
ie
- the event to handle
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |