|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--weka.gui.PropertySelectorDialog
Allows the user to select any (supported) property of an object, including properties that any of it's property values may have.
Nested Class Summary |
Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
APPROVE_OPTION
Signifies an OK property selection |
static int |
CANCEL_OPTION
Signifies a cancelled property selection |
protected JButton |
m_CancelBut
Click to cancel the property selection |
protected int |
m_Result
Whether the selection was made or cancelled |
protected Object[] |
m_ResultPath
Stores the path to the selected property |
protected DefaultMutableTreeNode |
m_Root
The root of the property tree |
protected Object |
m_RootObject
The object at the root of the tree |
protected JButton |
m_SelectBut
Click to choose the currently selected property |
protected JTree |
m_Tree
The component displaying the property tree |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PropertySelectorDialog(Frame parentFrame,
Object rootObject)
Create the property selection dialog. |
Method Summary | |
protected void |
createNodes(DefaultMutableTreeNode localNode)
Creates the property tree below the current node. |
PropertyNode[] |
getPath()
Gets the path of property nodes to the selected property. |
static void |
main(String[] args)
Tests out the property selector from the command line. |
int |
showDialog()
Pops up the modal dialog and waits for cancel or a selection. |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected JButton m_SelectBut
protected JButton m_CancelBut
protected DefaultMutableTreeNode m_Root
protected Object m_RootObject
protected int m_Result
protected Object[] m_ResultPath
protected JTree m_Tree
public static final int APPROVE_OPTION
public static final int CANCEL_OPTION
Constructor Detail |
public PropertySelectorDialog(Frame parentFrame, Object rootObject)
parentFrame
- the parent frame of the dialogrootObject
- the object containing properties to select fromMethod Detail |
public int showDialog()
public PropertyNode[] getPath()
protected void createNodes(DefaultMutableTreeNode localNode)
localNode
- a value of type 'DefaultMutableTreeNode'public static void main(String[] args)
args
- ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |