de.aitools.iv.graphdrawing.misc
Class ConfigurationDialog

java.lang.Object
  extended by de.aitools.iv.graphdrawing.misc.ConfigurationDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.ChangeListener

public class ConfigurationDialog
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener

implements a dialog that deals with ConfigurationPanels.
It mainly consists of a JTabbedPane and four JButtons: Ok, Apply, Preview and Cancel.

Author:
bigben@upb.de

Field Summary
static java.lang.String APPLY
           
static java.lang.String CANCEL
           
static java.lang.String OK
           
static java.lang.String PREVIEW
           
 
Constructor Summary
ConfigurationDialog()
          creates a dialog dealing with PreferencePanel's .
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          this method is visible, as an implementation side-effect.
 void add(ConfigurationPanel pp)
          adds a PreferencesPanel to this dialog
 void dispose()
          dispose
 void pack()
          minimize the area, this dialog will use
 void removeAll()
          removes all PreferencesPanel's from this dialog
 void setLocationRelativeTo(java.awt.Component comp)
          centers this dialog over the Component comp
 void setTitle(java.lang.String title)
          sets the title of this dialog
 void setVisible(boolean visible)
          show or hide this frame
 void stateChanged(javax.swing.event.ChangeEvent ce)
          this method is visible as an implementation side effect.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final java.lang.String OK
See Also:
Constant Field Values

APPLY

public static final java.lang.String APPLY
See Also:
Constant Field Values

PREVIEW

public static final java.lang.String PREVIEW
See Also:
Constant Field Values

CANCEL

public static final java.lang.String CANCEL
See Also:
Constant Field Values
Constructor Detail

ConfigurationDialog

public ConfigurationDialog()
creates a dialog dealing with PreferencePanel's .

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
this method is visible, as an implementation side-effect.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent ce)
this method is visible as an implementation side effect.

Specified by:
stateChanged in interface javax.swing.event.ChangeListener

add

public void add(ConfigurationPanel pp)
adds a PreferencesPanel to this dialog

Parameters:
pp - the Panel to be added

removeAll

public void removeAll()
removes all PreferencesPanel's from this dialog


setLocationRelativeTo

public void setLocationRelativeTo(java.awt.Component comp)
centers this dialog over the Component comp


setVisible

public void setVisible(boolean visible)
show or hide this frame


pack

public void pack()
minimize the area, this dialog will use


setTitle

public void setTitle(java.lang.String title)
sets the title of this dialog


dispose

public void dispose()
dispose