com.arsdigita.cms.ui.staff
Class PartyInfo

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.cms.ui.staff.PartyInfo
All Implemented Interfaces:
Cloneable, com.arsdigita.bebop.Component, com.arsdigita.bebop.Container, com.arsdigita.util.Lockable

public class PartyInfo
extends com.arsdigita.bebop.SimpleContainer

This panel displays information for a particular party.

Version:
$Revision: #15 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Pih (pihman@arsdigita.com), Michael Bryzek (mbryzek@arsdigita.com)

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
PartyInfo(com.arsdigita.bebop.SingleSelectionModel parties)
          Constructor.
PartyInfo(com.arsdigita.bebop.SingleSelectionModel parties, boolean useViewersGroup)
          Constructor.
 
Method Summary
 void generateXML(com.arsdigita.bebop.PageState state, com.arsdigita.xml.Element parent)
          Adds a roleMemberInfo element to the DOM.
protected  com.arsdigita.bebop.ActionLink getBackLink()
          Return the back link.
protected  com.arsdigita.bebop.List getList()
          Return the list of roles.
protected  BigDecimal getPartyId(com.arsdigita.bebop.PageState state)
          Gets the party ID.
 
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

PartyInfo

public PartyInfo(com.arsdigita.bebop.SingleSelectionModel parties)
Constructor.

Parameters:
parties - A selection model for parties

PartyInfo

public PartyInfo(com.arsdigita.bebop.SingleSelectionModel parties,
                 boolean useViewersGroup)
Constructor.

Parameters:
parties - A selection model for users
useViewersGroup - Whether to use viewers roles instead of staff admin roles
Method Detail

getList

protected com.arsdigita.bebop.List getList()
Return the list of roles.

Returns:
The list of roles

getBackLink

protected com.arsdigita.bebop.ActionLink getBackLink()
Return the back link.

Returns:
The back link

getPartyId

protected BigDecimal getPartyId(com.arsdigita.bebop.PageState state)
Gets the party ID.

Parameters:
state - The page state
Returns:
The party ID

generateXML

public void generateXML(com.arsdigita.bebop.PageState state,
                        com.arsdigita.xml.Element parent)
Adds a roleMemberInfo element to the DOM.

The XML generated has the form

   <cms:roleMemberInfo party_id="id" name="Name" email="email">
     <bebop:list id="party_roles_list">
       ... XML generated for component returned by renderer ...
     </bebop:list>
     <bebop:link id="back_link">
       ... XML generated for component returned by renderer ...
     </bebop:link>
   </cms:roleMemberInfo>

Parameters:
state - the state of the current request
parent - the element into which XML is generated


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