com.arsdigita.bebop
Class PropertySheet

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.Table
                      extended bycom.arsdigita.bebop.PropertySheet
All Implemented Interfaces:
BebopConstants, Cloneable, Component, Lockable
Direct Known Subclasses:
DomainObjectPropertySheet

public class PropertySheet
extends Table

Displays a list of label-value pairs that represent the properties of some object. For example, a typical PropertySheet may look like this:

First Name:Stanislav
Last Name:Freidin
Mission:Sleep

This class relies on the PropertySheetModelBuilder to supply it with the right PropertySheetModel during each request. It is up to the user to provide the right builder.

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/PropertySheet.java#11 $
Author:
Stanislav Freidin

Nested Class Summary
static class PropertySheet.GlobalizedLabelCellRenderer
           
static class PropertySheet.StringLabelCellRenderer
           
 
Nested classes inherited from class com.arsdigita.bebop.Table
Table.MatrixTableModelBuilder
 
Field Summary
static PropertySheetModel EMPTY_MODEL
          An empty PropertySheetModel.
static String versionId
           
 
Fields inherited from class com.arsdigita.bebop.Table
CELL_EVENT, SEP
 
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
PropertySheet(PropertySheetModelBuilder modelBuilder)
          Constructs a new PropertySheet.
PropertySheet(PropertySheetModelBuilder modelBuilder, boolean valueOutputEscape)
          Constructs a new PropertySheet and sets the output escape value.
 
Method Summary
 PropertySheetModelBuilder getPropertySheetModelBuilder()
          Returns the PropertySheetModelBuilder.
 
Methods inherited from class com.arsdigita.bebop.Table
addTableActionListener, children, clearSelection, createTableActionListener, fireCellSelected, fireHeadSelected, generateExtraXMLAttributes, generateXML, getBorder, getCellPadding, getCellSpacing, getColumn, getColumnModel, getColumnSelectionModel, getControler, getDefaultCellRenderer, getEmptyView, getHeader, getModelBuilder, getRowSelectionModel, getStriped, getTableModel, getWidth, isSelectedCell, isSelectedColumn, isSelectedRow, lock, register, removeTableActionListener, respond, setBorder, setCellPadding, setCellSpacing, setColumn, setColumnModel, setColumnSelectionModel, setDefaultCellRenderer, setEmptyView, setHeader, setModelBuilder, setRowSelectionModel, setStriped, setWidth
 
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, register, 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

EMPTY_MODEL

public static final PropertySheetModel EMPTY_MODEL
An empty PropertySheetModel.

Constructor Detail

PropertySheet

public PropertySheet(PropertySheetModelBuilder modelBuilder)
Constructs a new PropertySheet.

Parameters:
modelBuilder - the property sheet model builder that is responsible for building the property sheet model

PropertySheet

public PropertySheet(PropertySheetModelBuilder modelBuilder,
                     boolean valueOutputEscape)
Constructs a new PropertySheet and sets the output escape value.

Parameters:
modelBuilder - the property sheet model builder that is responsible for building the property sheet model
valueOutputEscape - the value of the label-value pair's output-escaping
Method Detail

getPropertySheetModelBuilder

public PropertySheetModelBuilder getPropertySheetModelBuilder()
Returns the PropertySheetModelBuilder.

Returns:
the PropertySheetModelBuilder.


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