com.tensegrity.gui.swing.dialog.graphfilechooser
Class GraphFileChooserOptionRow

java.lang.Object
  extended bycom.tensegrity.gui.swing.dialog.graphfilechooser.GraphFileChooserOption
      extended bycom.tensegrity.gui.swing.dialog.graphfilechooser.GraphFileChooserOptionRow

public class GraphFileChooserOptionRow
extends GraphFileChooserOption

GraphFileChooserOptionRow

Author:
BurkhardWick

Field Summary
 
Fields inherited from class com.tensegrity.gui.swing.dialog.graphfilechooser.GraphFileChooserOption
file, filter
 
Constructor Summary
GraphFileChooserOptionRow(GraphFileChooserOption[] components)
          Constructor
 
Method Summary
static void alignLines(GraphFileChooserOptionRow[] rows)
          Aligns all options from different rows, so that the components are building columns.
protected  java.lang.Object getInitialValue()
          Called at initialization time to determine the initial value
 GraphFileChooserOption getOptionAt(int index)
          Returns the option with the given index
 int getOptionCount()
          Returns the number of options in this row
protected  void parentValueChanged(java.lang.Object newVal)
          Called when the parent option changes the value
 void revalidate()
          Revalidates the state of this option and its children after a change of settings
 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 com.tensegrity.gui.swing.dialog.graphfilechooser.GraphFileChooserOption
addChild, getChild, getChildCount, getComponent, getDepth, getIndentation, getParent, getValue, isEnabled, removeChild, setValue, updateIndentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFileChooserOptionRow

public GraphFileChooserOptionRow(GraphFileChooserOption[] components)
Constructor

Parameters:
components - The options to add to the line
Method Detail

getOptionAt

public GraphFileChooserOption getOptionAt(int index)
Returns the option with the given index

Parameters:
index - the index of the option to return
Returns:
the option with the given index

getOptionCount

public int getOptionCount()
Returns the number of options in this row

Returns:
the number of options in this row

revalidate

public void revalidate()
Description copied from class: GraphFileChooserOption
Revalidates the state of this option and its children after a change of settings

Overrides:
revalidate in class GraphFileChooserOption

parentValueChanged

protected void parentValueChanged(java.lang.Object newVal)
Description copied from class: GraphFileChooserOption
Called when the parent option changes the value

Specified by:
parentValueChanged in class GraphFileChooserOption
Parameters:
newVal - The new value of the option

getInitialValue

protected java.lang.Object getInitialValue()
Description copied from class: GraphFileChooserOption
Called at initialization time to determine the initial value

Specified by:
getInitialValue in class GraphFileChooserOption
Returns:
The initial value of this option

alignLines

public static void alignLines(GraphFileChooserOptionRow[] rows)
Aligns all options from different rows, so that the components are building columns.

Parameters:
rows - The rows to align the items of

updateState

public void updateState(javax.swing.filechooser.FileFilter filter,
                        java.io.File file)
Description copied from class: GraphFileChooserOption
Updates the state when the user selected a different file filter in the dialog

Overrides:
updateState in class GraphFileChooserOption
Parameters:
filter - The selected filter in the dialog
file - The selected file in the dialog


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.