Diamond Control Suite 3.0

diamondedge.swing
Class DsActionGroup

java.lang.Object
  extended by diamondedge.swing.DsActionGroup
All Implemented Interfaces:
PropertyChangeListener, EventListener
Direct Known Subclasses:
DsSlidingTabBar.ButtonGroup

public abstract class DsActionGroup
extends Object
implements PropertyChangeListener


Method Summary
 Action add(Action action)
           
 Action add(int index, Action action)
           
 void clear()
          Removes all elements from the collection.
protected  AbstractButton createActionButton(Action action)
          Create button for a new item in this group.
 Action getAction(int index)
           
 Action getAction(String key)
           
 int getActionCount()
          Returns the number of actions in the collection.
 Color getBackground()
          Returns the group's background color.
 Component getComponent()
          Returns the component used to display this group of actions.
 Font getFont()
          Returns the properties of the list items Font object.
 Color getForeground()
          Returns the foreground (text) color of the list items.
 String getKey()
          Returns the distinct Key within the collection.
abstract  Component getNavigationComponent()
          Returns the component used to navigate to this group of actions.
 String getTitle()
          Returns the caption of the group.
 void propertyChange(PropertyChangeEvent e)
           
 Action remove(int index)
           
 Action remove(String key)
           
 void setBackground(Color val)
          Sets the group's background color.
 void setFont(Font val)
          Sets the properties of the list items Font object.
 void setForeground(Color val)
          Sets the foreground (text) color of the list items.
 void setKey(String val)
          Sets the distinct Key within the collection.
 void setTitle(String val)
          Sets the caption of the group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getActionCount

public int getActionCount()
Returns the number of actions in the collection.


add

public Action add(Action action)

add

public Action add(int index,
                  Action action)

createActionButton

protected AbstractButton createActionButton(Action action)
Create button for a new item in this group. Can be overridden to create customized buttons.


remove

public Action remove(int index)

remove

public Action remove(String key)

clear

public void clear()
Removes all elements from the collection.


getNavigationComponent

public abstract Component getNavigationComponent()
Returns the component used to navigate to this group of actions. This component is always visible and is the component that is sliding in the top level list.


getComponent

public Component getComponent()
Returns the component used to display this group of actions. This component is only visible when this group is the active group.


getAction

public Action getAction(int index)

getAction

public Action getAction(String key)

getForeground

public Color getForeground()
Returns the foreground (text) color of the list items.


setForeground

public void setForeground(Color val)
Sets the foreground (text) color of the list items.


getBackground

public Color getBackground()
Returns the group's background color.


setBackground

public void setBackground(Color val)
Sets the group's background color.


getTitle

public String getTitle()
Returns the caption of the group.


setTitle

public void setTitle(String val)
Sets the caption of the group.


getFont

public Font getFont()
Returns the properties of the list items Font object.


setFont

public void setFont(Font val)
Sets the properties of the list items Font object.


getKey

public String getKey()
Returns the distinct Key within the collection.


setKey

public void setKey(String val)
Sets the distinct Key within the collection.


propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener

Diamond Control Suite 3.0

Diamond Edge and Diamond Control Suite are trademarks or registered trademarks of Diamond Edge, Inc. Copyright 1999-2005 Diamond Edge, Inc. All Rights Reserved.