com.arsdigita.toolbox.ui
Class ItemEditor

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.ModalContainer
                          extended bycom.arsdigita.toolbox.ui.ItemEditor
All Implemented Interfaces:
Cloneable, Component, Container, Lockable, Resettable

public class ItemEditor
extends ModalContainer


Field Summary
static String versionId
           
 
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.Component
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE
 
Constructor Summary
ItemEditor()
           
 
Method Summary
 void register(Page page)
          Registers state parameters for the page with its model.
 void setDefaultComponent(Component component)
           
 void setDelete(ActionLink deleteLink, Form delete)
           
 void setDetails(Component details)
           
 void setEdit(ActionLink editLink, Form edit)
           
 void setReturn(ActionLink returnLink)
           
 void setSummary(Label heading, Component summary)
           
 
Methods inherited from class com.arsdigita.bebop.ModalContainer
addModeChangeListener, getDefaultComponent, getVisibleComponent, next, previous, reset, setVisibleComponent
 
Methods inherited from class com.arsdigita.bebop.SimpleContainer
add, add, children, contains, generateChildrenXML, generateParent, generateXML, 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, 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, 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

ItemEditor

public ItemEditor()
Method Detail

setSummary

public final void setSummary(Label heading,
                             Component summary)

setDetails

public final void setDetails(Component details)

setEdit

public final void setEdit(ActionLink editLink,
                          Form edit)

setDelete

public final void setDelete(ActionLink deleteLink,
                            Form delete)

setReturn

public final void setReturn(ActionLink returnLink)

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 ModalContainer

setDefaultComponent

public final void setDefaultComponent(Component component)
Overrides:
setDefaultComponent in class ModalContainer


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