|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.ListBoxSelector
public class ListBoxSelector
ListBoxSelector is an adapter class that instantiates an UpDownListBox and provides all the neccesary method calls and functionality the DetailedListEditor would use.
Field Summary | |
---|---|
com.sas.collection.OrderedCollection |
bottomButtonPanelCommands
|
com.sas.collection.OrderedCollection |
buttonPanelCommands
|
protected java.lang.String |
componentTitle
|
java.lang.Object |
defaultItemValue
|
java.awt.Component |
detailsComponent
|
protected java.awt.event.ItemListener |
itemListenerList
ItemListener for the ListEditor |
UpDownListBox |
listBox
UpDownListBox instance that all methods are called on |
protected boolean |
reorderControlVisible
|
Constructor Summary | |
---|---|
ListBoxSelector()
constructor, takes in a listBox and sets it to this.listBox |
|
ListBoxSelector(java.lang.String componentTitle)
|
Method Summary | |
---|---|
void |
add(java.lang.Object item,
int pos)
Adds an object in specific index location in the UpDownListBox |
void |
addItemListener(java.awt.event.ItemListener listener)
Add an ItemListener to listen for ItemEvents on the ListBox |
void |
deselectAll()
deselects all items in the UpDownListBox |
void |
detachModel(com.sas.ModelInterface model)
Detaches the model from the component |
void |
enableButtons()
|
protected void |
fireItemEvent(java.awt.event.ItemEvent e)
|
com.sas.util.Command[] |
getBottomButtonPanelCommands()
|
com.sas.util.Command[] |
getButtonPanelCommands()
Return the specific commands in order that the DetailedListEditor may add the correct buttons and methods corresponding to calls. |
java.awt.Component |
getComponent()
|
java.lang.String |
getComponentTitle()
|
java.lang.Object |
getDefaultItemValue()
|
int |
getItemCount()
Returns number of items in the UpDownListBox |
com.sas.ModelInterface |
getModelInterface()
Returns the modelInterface attached to the component |
java.util.Vector |
getRequiredInterfaces()
|
int[] |
getSelectedIndexes()
Returns and array of int corresponding to all selected indexes |
java.lang.Object[] |
getSelectedObjects()
Returns and array of objects corresponding to all selected objects |
boolean |
isReorderControlVisible()
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
|
protected void |
processItemEvent(java.awt.event.ItemEvent e)
|
void |
refresh()
|
void |
remove(int index)
Removes the object at specific index |
void |
removeItemListener(java.awt.event.ItemListener listener)
|
void |
replaceItem(java.lang.Object newValue,
int index)
Replaces an object at a specific index with the newValue object |
void |
select(int index)
Selects the item at the specific index in the UpDownListBox |
void |
setComponentTitle(java.lang.String title)
|
void |
setDefaultItemValue(java.lang.Object defaultItemValue)
|
void |
setDefaultValues()
|
void |
setDetailsComponent(java.awt.Component detailsComponent)
|
void |
setEnabled(boolean bool)
|
void |
setModelInterface(com.sas.ModelInterface model)
Sets the model on the listBox |
void |
setReorderControlVisible(boolean hidden)
|
protected void |
setSelectedItem(int index)
Selects the specific object in the listBox |
void |
setSpinButtonVisible(boolean bool)
Sets the visibility of the spin button on the UpDownListBox allowing reordering or not |
Field Detail |
---|
public UpDownListBox listBox
protected boolean reorderControlVisible
public com.sas.collection.OrderedCollection buttonPanelCommands
public com.sas.collection.OrderedCollection bottomButtonPanelCommands
protected java.lang.String componentTitle
public java.awt.Component detailsComponent
public java.lang.Object defaultItemValue
protected transient java.awt.event.ItemListener itemListenerList
Constructor Detail |
---|
public ListBoxSelector()
public ListBoxSelector(java.lang.String componentTitle)
Method Detail |
---|
public void setDefaultValues()
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
protected void setSelectedItem(int index)
public void setReorderControlVisible(boolean hidden)
public boolean isReorderControlVisible()
public java.awt.Component getComponent()
getComponent
in interface DetailedSelectorInterface
public java.lang.String getComponentTitle()
getComponentTitle
in interface DetailedSelectorInterface
public void setComponentTitle(java.lang.String title)
public void add(java.lang.Object item, int pos)
item
- object to be added to the UpDownListBoxpos
- the index position at which the object is addedpublic void deselectAll()
public void detachModel(com.sas.ModelInterface model)
detachModel
in interface DetailedSelectorInterface
public int getItemCount()
public com.sas.ModelInterface getModelInterface()
getModelInterface
in interface DetailedSelectorInterface
public int[] getSelectedIndexes()
public java.lang.Object[] getSelectedObjects()
getSelectedObjects
in interface java.awt.ItemSelectable
public void refresh()
public java.lang.Object getDefaultItemValue()
public void setDefaultItemValue(java.lang.Object defaultItemValue)
public void replaceItem(java.lang.Object newValue, int index)
newValue
- the new object that replaces the oldindex
- the index at which the object will replacepublic void remove(int index)
public void select(int index)
public void setSpinButtonVisible(boolean bool)
public void setModelInterface(com.sas.ModelInterface model)
setModelInterface
in interface DetailedSelectorInterface
public void setDetailsComponent(java.awt.Component detailsComponent)
setDetailsComponent
in interface DetailedSelectorInterface
protected void processItemEvent(java.awt.event.ItemEvent e)
public void setEnabled(boolean bool)
public com.sas.util.Command[] getBottomButtonPanelCommands()
getBottomButtonPanelCommands
in interface DetailedSelectorInterface
public com.sas.util.Command[] getButtonPanelCommands()
DetailedSelectorInterface
getButtonPanelCommands
in interface DetailedSelectorInterface
public java.util.Vector getRequiredInterfaces()
getRequiredInterfaces
in interface DetailedSelectorInterface
public void addItemListener(java.awt.event.ItemListener listener)
addItemListener
in interface java.awt.ItemSelectable
listener
- the ItemListener to send the ItemEvents to.ItemListener
,
removeItemListener(java.awt.event.ItemListener)
public void removeItemListener(java.awt.event.ItemListener listener)
removeItemListener
in interface java.awt.ItemSelectable
protected void fireItemEvent(java.awt.event.ItemEvent e)
public void enableButtons()
enableButtons
in interface DetailedSelectorInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |