com.arsdigita.ui.sitemap
Class DisplayActions

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.bebop.TextStylable
              extended bycom.arsdigita.bebop.BlockStylable
                  extended bycom.arsdigita.bebop.SimpleContainer
                      extended bycom.arsdigita.bebop.BoxPanel
                          extended bycom.arsdigita.ui.sitemap.DisplayActions
All Implemented Interfaces:
ActionListener, BebopConstants, ChangeListener, Cloneable, Component, Container, EventListener, Lockable

public class DisplayActions
extends BoxPanel
implements ActionListener, ChangeListener

The DisplayActions class does the following: It listens for change events in the Tree selection model, and when it detects one, it draws two box panels; one above the other. The Top box panel is for SiteNode info and cfg, and the bottom is for package instance cfg. import com.arsdigita.ui.util.GlobalizationUtil ; Every time a selection event is heard, this class:

Author:
Jim Parsons

Nested Class Summary
 class DisplayActions.AddSubnodeForm
           
 class DisplayActions.MountInstanceForm
           
 class DisplayActions.NodeState
           
 class DisplayActions.RemoveNodeForm
           
 class DisplayActions.UnmountInstanceForm
           
 
Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.BoxPanel
HORIZONTAL, VERTICAL
 
Fields inherited from class com.arsdigita.bebop.BlockStylable
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.util.BebopConstants
BEBOP_BORDER, BEBOP_BOXPANEL, BEBOP_CELL, BEBOP_CHECKBOX, BEBOP_CHECKBOXGROUP, BEBOP_COLUMNPANEL, BEBOP_DATE, BEBOP_DATETIME, BEBOP_DHTMLEDITOR, BEBOP_FORMERRORS, BEBOP_FORMWIDGET, BEBOP_GRIDPANEL, BEBOP_LIST, BEBOP_MULTISELECT, BEBOP_OPTION, BEBOP_PAD, BEBOP_PADFRAME, BEBOP_PANELROW, BEBOP_PORTAL, BEBOP_PORTLET, BEBOP_RADIO, BEBOP_RADIOGROUP, BEBOP_SEG_BODY, BEBOP_SEG_HEADER, BEBOP_SEG_PANEL, BEBOP_SEGMENT, BEBOP_SELECT, BEBOP_TABLE, BEBOP_TABLEBODY, BEBOP_TABLEROW, BEBOP_TEXTAREA
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
DisplayActions(SingleSelectionModel m)
          Constructor for DisplayActions
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action has been performed.
 DisplayActions.NodeState computeDefaultState(PageState p)
          The computeDefaultState method.
 void stateChanged(ChangeEvent e)
          stateChanged listens for Tree select events.
 
Methods inherited from class com.arsdigita.bebop.BoxPanel
generateXML, setBorder, setBorder, setWidth
 
Methods inherited from class com.arsdigita.bebop.SimpleContainer
add, add, children, contains, generateChildrenXML, generateParent, get, getNamespace, getTag, indexOf, isEmpty, setNamespace, setTag, size
 
Methods inherited from class com.arsdigita.bebop.BlockStylable
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment
 
Methods inherited from class com.arsdigita.bebop.TextStylable
setBackgroundColor, setColor
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, register, respond, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible
 
Methods inherited from class com.arsdigita.bebop.Completable
addCompletionListener, fireCompletionEvent
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.bebop.Component
getClassAttr, getIdAttr, getKey, getStyleAttr, isVisible, register, register, respond, setClassAttr, setIdAttr, setKey, setStyleAttr, setVisible
 
Methods inherited from interface com.arsdigita.util.Lockable
isLocked, lock
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

DisplayActions

public DisplayActions(SingleSelectionModel m)
Constructor for DisplayActions

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from interface: ActionListener
Invoked when an action has been performed.

Specified by:
actionPerformed in interface ActionListener

computeDefaultState

public DisplayActions.NodeState computeDefaultState(PageState p)
The computeDefaultState method. This method: 1) gets key of selected tree node 2) generates SiteNode from the key 3) Determines if the node has any children 4) Determines if an instance is mounted on the node


stateChanged

public void stateChanged(ChangeEvent e)
stateChanged listens for Tree select events.

Specified by:
stateChanged in interface ChangeListener


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC