net.sf.jzeno.echo.components
Class PropertyGrid

java.lang.Object
  extended by nextapp.echo.AbstractComponent
      extended by net.sf.jzeno.echo.components.CustomComponent
          extended by net.sf.jzeno.echo.components.PropertyGrid
All Implemented Interfaces:
java.io.Serializable, BindingTarget, PropertyComponent, RebindableComponent, EventPropagator, EventSink, EventSource, Component, FastComponent, FastComponentContainer
Direct Known Subclasses:
CriteriaGrid

public class PropertyGrid
extends CustomComponent
implements EventPropagator

See Also:
Serialized Form

Field Summary
static int PERCENT_UNITS
           
static int PIXEL_UNITS
           
 
Fields inherited from interface nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
PropertyGrid()
           
PropertyGrid(java.lang.Class beanClass, java.lang.String property, java.lang.String constructionHints)
           
PropertyGrid(java.lang.Class beanClass, java.lang.String property, java.lang.String gridConstructionHints, ConstructionList constructionList)
           
 
Method Summary
 Component createEditor(int i)
           
 Component createViewer(int i)
           
 java.lang.String getActionCommand()
           
 int getBorderSize()
           
 java.lang.String getButtonLabel()
           
 int getCellMargin()
           
 ConstructionList getConstructionList()
           
 Color getLabelBackground()
           Gets the background color for the labels.
 Font getLabelFont()
           
 Color getLabelForeground()
           Gets the foreground color for the labels.
 int getLabelHorizontalAlignment()
           Gets the horizontal alignment for the labels.
 int getLabelWidth()
           
 int getLabelWidthUnits()
           
 Color getValueBackground()
           Gets the background color for the viewers/editors showing the property values.
 Font getValueFont()
           
 Color getValueForeground()
           Gets the foreground color for the viewers/editors showing the property values.
 int getValueHorizontalAlignment()
           Gets the horizontal alignment for the viewers/editors showing the property values.
 int getVerticalColumns()
           
 int getWidth()
           
 int getWidthUnits()
           
 boolean isVertical()
           
 boolean isViewOnly()
           
 void propagateEvent(ActionEvent event)
           
 void setActionCommand(java.lang.String actionCommand)
           
 void setBorderSize(int i)
           
 void setButtonLabel(java.lang.String buttonLabel)
           
 void setCellMargin(int i)
           
 void setConstructionList(ConstructionList constructionList)
           
 void setFocused(java.lang.String propertyName, boolean newValue)
           Sets the focus on the component that is bound to propertyName.
 void setLabelBackground(Color color)
           Sets the background color for the labels.
 void setLabelFont(Font labelFont)
           
 void setLabelForeground(Color color)
           Sets the foreground color for the labels.
 void setLabelHorizontalAlignment(int labelHorizontalAlignment)
           Sets the horizontal alignment for the labels.
 void setLabelWidth(int labelWidth)
           
 void setLabelWidthUnits(int labelWidthUnits)
           
 void setValueBackground(Color color)
           Sets the background color for the viewers/editors showing the property values.
 void setValueFont(Font valueFont)
           
 void setValueForeground(Color color)
           Sets the foreground color for the viewers/editors showing the property values.
 void setValueHorizontalAlignment(int valueHorizontalAlignment)
           Sets the horizontal alignment for the viewers/editors showing the property values.
 void setVertical(boolean vertical)
           
 void setVerticalColumns(int verticalColumns)
           
 void setViewOnly(boolean viewOnly)
           Use viewers or editors for displaying the properties.
 void setWidth(int width)
           
 void setWidthUnits(int i)
           
 
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, preRender, rebind, removeValidator, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue, validate
 
Methods inherited from class nextapp.echo.AbstractComponent
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getListenerList, getLocale, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setClientId, setEnabled, setFocused, setFont, setForeground, setIdentifier, setLocale, setParent, setRegistered, setSelectableForScriptRecorder, setVisible, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIXEL_UNITS

public static final int PIXEL_UNITS
See Also:
Constant Field Values

PERCENT_UNITS

public static final int PERCENT_UNITS
See Also:
Constant Field Values
Constructor Detail

PropertyGrid

public PropertyGrid()

PropertyGrid

public PropertyGrid(java.lang.Class beanClass,
                    java.lang.String property,
                    java.lang.String constructionHints)

PropertyGrid

public PropertyGrid(java.lang.Class beanClass,
                    java.lang.String property,
                    java.lang.String gridConstructionHints,
                    ConstructionList constructionList)
Method Detail

propagateEvent

public void propagateEvent(ActionEvent event)
Specified by:
propagateEvent in interface EventPropagator

createEditor

public Component createEditor(int i)

createViewer

public Component createViewer(int i)

isVertical

public boolean isVertical()

setVertical

public void setVertical(boolean vertical)

getVerticalColumns

public int getVerticalColumns()

setVerticalColumns

public void setVerticalColumns(int verticalColumns)

getButtonLabel

public java.lang.String getButtonLabel()

setButtonLabel

public void setButtonLabel(java.lang.String buttonLabel)

getConstructionList

public ConstructionList getConstructionList()

setConstructionList

public void setConstructionList(ConstructionList constructionList)

isViewOnly

public boolean isViewOnly()

setViewOnly

public void setViewOnly(boolean viewOnly)

Use viewers or editors for displaying the properties.


getLabelBackground

public Color getLabelBackground()

Gets the background color for the labels.


getLabelForeground

public Color getLabelForeground()

Gets the foreground color for the labels.


getValueBackground

public Color getValueBackground()

Gets the background color for the viewers/editors showing the property values.


getValueForeground

public Color getValueForeground()

Gets the foreground color for the viewers/editors showing the property values.


setLabelBackground

public void setLabelBackground(Color color)

Sets the background color for the labels.


setLabelForeground

public void setLabelForeground(Color color)

Sets the foreground color for the labels.


setValueBackground

public void setValueBackground(Color color)

Sets the background color for the viewers/editors showing the property values.


setValueForeground

public void setValueForeground(Color color)

Sets the foreground color for the viewers/editors showing the property values.


getLabelHorizontalAlignment

public int getLabelHorizontalAlignment()

Gets the horizontal alignment for the labels.


setLabelHorizontalAlignment

public void setLabelHorizontalAlignment(int labelHorizontalAlignment)

Sets the horizontal alignment for the labels.


getValueHorizontalAlignment

public int getValueHorizontalAlignment()

Gets the horizontal alignment for the viewers/editors showing the property values.


setValueHorizontalAlignment

public void setValueHorizontalAlignment(int valueHorizontalAlignment)

Sets the horizontal alignment for the viewers/editors showing the property values.


setFocused

public void setFocused(java.lang.String propertyName,
                       boolean newValue)

Sets the focus on the component that is bound to propertyName.


setActionCommand

public void setActionCommand(java.lang.String actionCommand)
Specified by:
setActionCommand in interface EventSource
Overrides:
setActionCommand in class CustomComponent

getActionCommand

public java.lang.String getActionCommand()
Specified by:
getActionCommand in interface EventSource
Overrides:
getActionCommand in class CustomComponent

setWidth

public void setWidth(int width)

getWidth

public int getWidth()

setWidthUnits

public void setWidthUnits(int i)

getWidthUnits

public int getWidthUnits()

setBorderSize

public void setBorderSize(int i)

getBorderSize

public int getBorderSize()

setCellMargin

public void setCellMargin(int i)

getCellMargin

public int getCellMargin()

getLabelWidth

public int getLabelWidth()

setLabelWidth

public void setLabelWidth(int labelWidth)

getLabelWidthUnits

public int getLabelWidthUnits()

setLabelWidthUnits

public void setLabelWidthUnits(int labelWidthUnits)

getLabelFont

public Font getLabelFont()

setLabelFont

public void setLabelFont(Font labelFont)

getValueFont

public Font getValueFont()

setValueFont

public void setValueFont(Font valueFont)