com.arsdigita.toolbox.ui
Class ModalPanel

java.lang.Object
  extended bycom.arsdigita.bebop.Completable
      extended bycom.arsdigita.bebop.SimpleComponent
          extended bycom.arsdigita.toolbox.ui.ComponentMap
              extended bycom.arsdigita.toolbox.ui.ModalPanel
All Implemented Interfaces:
Cloneable, Component, Lockable, Resettable

public class ModalPanel
extends ComponentMap


Nested Class Summary
protected  class ModalPanel.CancelListener
           
protected  class ModalPanel.FinishListener
           
protected  class ModalPanel.FormNavigationListener
           
protected  class ModalPanel.NavigationListener
           
protected  class ModalPanel.ResetListener
           
protected  class ModalPanel.ResumeListener
           
protected  class ModalPanel.TableNavigationListener
           
protected  class ModalPanel.WidgetNavigationListener
           
 
Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.SimpleComponent
m_attr
 
Fields inherited from interface com.arsdigita.bebop.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
ModalPanel()
           
 
Method Summary
 void add(Component component)
           
 void clear(PageState state)
           
 void connect(ActionLink orig, Component dest)
           
 void connect(ActionLink orig, FormSection dest)
           
 void connect(FormSection orig)
           
 void connect(FormSection orig, Component dest)
           
 void connect(FormSection orig, FormSection dest)
           
 void connect(FormSection orig, SingleSelectionModel model)
           
 void connect(FormSection origForm, Widget origWidget, Object value, Component dest)
           
 void connect(Form origForm, Widget origWidget, Object value, FormSection dest)
           
 void connect(List orig, Component dest)
           
 void connect(List orig, FormSection dest)
           
 void connect(Table orig, int column, Component dest)
           
 void connect(Table orig, int column, FormSection dest)
           
 void connect(Tree orig, Component dest)
           
 void connect(Tree orig, FormSection dest)
           
 void generateXML(PageState state, Element parent)
          Adds [J]DOM nodes for this component.
 Component getDefault()
           
 void pop(PageState state)
           
 void push(PageState state, Component pushed)
           
 void register(Page page)
          Registers state parameters for the page with its model.
 void reset(PageState state)
          Resets the state of the component to its original appearance.
 void resume(FormSection orig, Component dest)
           
 void setDefault(Component defaalt)
           
 Component top(PageState state)
           
 
Methods inherited from class com.arsdigita.toolbox.ui.ComponentMap
children, containsKey, containsValue, get, put
 
Methods inherited from class com.arsdigita.bebop.SimpleComponent
clone, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, 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
 

Field Detail

versionId

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

ModalPanel

public ModalPanel()
Method Detail

register

public void register(Page page)
Description copied from interface: Component
Registers state parameters for the page with its model. A simple component with a state parameter param would do the following in the body of this method:
   p.addComponent(this);
   p.addComponentStateParam(this, param);
 
You should override this method to set the default visibility of your component:
 public void register(Page p) {
     super.register(p);
     p.setVisibleDefault(childNotInitiallyShown,false);
     p.setVisibleDefault(anotherChild, false);
 }
 
Always call super.register when you override register. Otherwise your component may malfunction and produce errors like "Widget ... isn't associated with any Form"

Specified by:
register in interface Component
Overrides:
register in class SimpleComponent

generateXML

public final void generateXML(PageState state,
                              Element parent)
Description copied from class: SimpleComponent
Adds [J]DOM nodes for this component. Specifically for base class SimpleComponent, does nothing.

Specified by:
generateXML in interface Component
Specified by:
generateXML in class ComponentMap

add

public final void add(Component component)

reset

public void reset(PageState state)
Description copied from interface: Resettable
Resets the state of the component to its original appearance.

Specified by:
reset in interface Resettable
Overrides:
reset in class ComponentMap

clear

public final void clear(PageState state)

push

public final void push(PageState state,
                       Component pushed)

pop

public final void pop(PageState state)

top

public final Component top(PageState state)

setDefault

public final void setDefault(Component defaalt)

getDefault

public final Component getDefault()

connect

public final void connect(ActionLink orig,
                          Component dest)

connect

public final void connect(Table orig,
                          int column,
                          Component dest)

connect

public final void connect(List orig,
                          Component dest)

connect

public final void connect(Tree orig,
                          Component dest)

connect

public final void connect(FormSection orig,
                          Component dest)

connect

public final void connect(FormSection origForm,
                          Widget origWidget,
                          Object value,
                          Component dest)

connect

public final void connect(ActionLink orig,
                          FormSection dest)

connect

public final void connect(Table orig,
                          int column,
                          FormSection dest)

connect

public final void connect(List orig,
                          FormSection dest)

connect

public final void connect(Tree orig,
                          FormSection dest)

connect

public final void connect(FormSection orig,
                          FormSection dest)

connect

public final void connect(Form origForm,
                          Widget origWidget,
                          Object value,
                          FormSection dest)

connect

public final void connect(FormSection orig)

connect

public final void connect(FormSection orig,
                          SingleSelectionModel model)

resume

public final void resume(FormSection orig,
                         Component dest)


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