ice.ri.common.dialog
Class SettingsDialogPanelGroup

java.lang.Object
  extended byice.ri.common.dialog.SettingsDialogPanelGroup

public class SettingsDialogPanelGroup
extends Object

The SettingsDialogPanelGroup class describes a grouping of related AbstractJSettingsDialogPanel classes. The groupings are used by the JDefaultSettingsDialog, JTabbedSettingsDialog and JTreeSettingsDialog to display related AbstractJSettingsDialogPanel in an specified way.

Since:
6.0
Version:
%I%, %G%
Author:
Patrick Corless

Constructor Summary
SettingsDialogPanelGroup(String name)
          Creates a new settings dialog object.
 
Method Summary
 void addPanel(Component panel)
          Add a new panel to the grouping.
 String getName()
          Get the name of the group.
 Vector getPanels()
          Return a list of all panels in the group.
 boolean remove(String name)
          Removes first occurrence of panel of the given name.
 void removeAll()
          Remove all panels from the group.
 void setName(String name)
          Set the name of the group.
 String toString()
          Return the display name of the grouping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SettingsDialogPanelGroup

public SettingsDialogPanelGroup(String name)
Creates a new settings dialog object.

Parameters:
name - name of panel group which can be displayed by an AbstractJSettingsDialog GUI that represents a panel group visually
Method Detail

addPanel

public void addPanel(Component panel)
Add a new panel to the grouping.

Parameters:
panel - AbstractJSettingsDailogPanel object to add to the group.

remove

public boolean remove(String name)
Removes first occurrence of panel of the given name.

Parameters:
name - - name of panel to remove
Returns:
true if panel was removed false otherwise

toString

public String toString()
Return the display name of the grouping.

Returns:
dislay name of the grouping

removeAll

public void removeAll()
Remove all panels from the group.


getPanels

public Vector getPanels()
Return a list of all panels in the group.

Returns:

setName

public void setName(String name)
Set the name of the group.

Parameters:
name -
See Also:
getName()

getName

public String getName()
Get the name of the group.

Returns:
name of group.