|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.dialog.graphfilechooser.GraphFileChooserOption
GraphFileChooserOption represents one line in the options panel of the GraphFileChooserDialog
| Field Summary | |
protected java.io.File |
file
file |
protected javax.swing.filechooser.FileFilter |
filter
filter |
| Constructor Summary | |
protected |
GraphFileChooserOption()
Constructor |
| Method Summary | |
void |
addChild(int index,
GraphFileChooserOption child)
Adds a child at the given index. |
GraphFileChooserOption |
getChild(int index)
Returns the child at the given index |
int |
getChildCount()
Returns the number of children in this options |
javax.swing.JComponent |
getComponent()
Returns the JComponent that represents this option in the dialog |
protected int |
getDepth()
Returns the current depth of this option |
int |
getIndentation()
Returns the indentation in pixels |
protected abstract java.lang.Object |
getInitialValue()
Called at initialization time to determine the initial value |
GraphFileChooserOption |
getParent()
Returns the parent of this option. |
java.lang.Object |
getValue()
Returns the current value of this option |
boolean |
isEnabled()
Returns true, if the option is selectable or false if it is disabled |
protected abstract void |
parentValueChanged(java.lang.Object newVal)
Called when the parent option changes the value |
void |
removeChild(GraphFileChooserOption child)
Removes the given child |
void |
revalidate()
Revalidates the state of this option and its children after a change of settings |
void |
setValue(java.lang.Object val)
Sets the new value of this option |
protected void |
updateIndentation()
Updates the indentation of this options component |
void |
updateState(javax.swing.filechooser.FileFilter filter,
java.io.File file)
Updates the state when the user selected a different file filter in the dialog |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.swing.filechooser.FileFilter filter
filter
protected java.io.File file
file
| Constructor Detail |
protected GraphFileChooserOption()
| Method Detail |
public java.lang.Object getValue()
public void setValue(java.lang.Object val)
val - the new value of this option to setpublic final GraphFileChooserOption getParent()
public final int getChildCount()
public final GraphFileChooserOption getChild(int index)
index - The index of the child to retrieve
public final void addChild(int index,
GraphFileChooserOption child)
index - the index to add the child tochild - the child to addpublic final void removeChild(GraphFileChooserOption child)
child - the child to removepublic boolean isEnabled()
public void updateState(javax.swing.filechooser.FileFilter filter,
java.io.File file)
filter - The selected filter in the dialogfile - The selected file in the dialogpublic void revalidate()
public final javax.swing.JComponent getComponent()
public int getIndentation()
protected final int getDepth()
protected final void updateIndentation()
protected abstract void parentValueChanged(java.lang.Object newVal)
newVal - The new value of the optionprotected abstract java.lang.Object getInitialValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||