|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.visuals.ClassSelectorPanel
public class ClassSelectorPanel
This class displays a TreeView with a ClassPathClasses model and allows the user to select a class.
Field Summary | |
---|---|
protected java.lang.String |
selectedClass
|
protected TextField |
selectedClassField
|
protected TreeView |
tree
|
Fields inherited from class com.sas.awt.Panel |
---|
RB_KEY |
Constructor Summary | |
---|---|
ClassSelectorPanel()
Default constructor. |
Method Summary | |
---|---|
java.lang.String |
getSelectedClass()
Returns the name of the selected class. |
void |
itemStateChanged(java.awt.event.ItemEvent event)
Internal event handler. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Internal event handler. |
protected com.sas.models.NodeInterface |
searchForClassNode(com.sas.models.NodeInterface baseNode,
java.lang.String className,
com.sas.collection.OrderedCollection path)
searchForClassNode searches the descendants of baseNode |
void |
setSelectedClass(java.lang.String selectedClass)
Sets the name of the selected class. |
static java.lang.String |
showClassSelectorDialog(java.awt.Component parent,
boolean modal,
java.lang.String title,
java.lang.String selectedClass)
showClassSelectorDialog displays a ClassSelectorPanel in a Dialog with Ok, Cancel, and Help buttons. |
Methods inherited from class com.sas.awt.Panel |
---|
getDefaultHeight, getDefaultWidth, getExtendedBeanInfo, remove, remove, removeAll, setDefaultHeight, setDefaultValues, setDefaultWidth |
Methods inherited from interface com.sas.awt.ContainerInterface |
---|
getComponents, getLayout, invalidate, setLayout, validate |
Field Detail |
---|
protected TextField selectedClassField
protected TreeView tree
protected java.lang.String selectedClass
Constructor Detail |
---|
public ClassSelectorPanel()
Method Detail |
---|
public static java.lang.String showClassSelectorDialog(java.awt.Component parent, boolean modal, java.lang.String title, java.lang.String selectedClass)
parent
- The component to center the dialog over.modal
- Whether the dialog is modaltitle
- The title to display on the dialog.selectedClass
- The name of the class to preselect in the tree.
public java.lang.String getSelectedClass()
public void setSelectedClass(java.lang.String selectedClass)
selectedClass
- The name of the class to select.public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class PanelVisualComponent
event
- The PropertyChangeEvent to handle.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
protected com.sas.models.NodeInterface searchForClassNode(com.sas.models.NodeInterface baseNode, java.lang.String className, com.sas.collection.OrderedCollection path)
baseNode
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
event
- The ItemEvent to handle.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |