net.sf.jzeno.echo.viewer
Class LargeStringViewer

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

public class LargeStringViewer
extends CustomComponent
implements Precreation

See Also:
Serialized Form

Field Summary
 
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
LargeStringViewer()
           
LargeStringViewer(java.lang.Class beanClass, java.lang.String property, java.lang.String constructionHints)
           
 
Method Summary
 void applyContext()
           
 Color getBackground()
          Returns the background color of the component.
 Color getBorderColor()
           
 int getBorderSize()
           
 int getBorderStyle()
           
 Color getBottomBorderColor()
           
 int getBottomBorderSize()
           
 int getBottomBorderStyle()
           
 Font getFont()
          Returns the font.
 Color getForeground()
          Returns the foreground of the component.
 int getHeight()
           
 int getHeightUnits()
           
 int getHorizontalAlignment()
           
 int getHorizontalTextPosition()
           
 Color getLeftBorderColor()
           
 int getLeftBorderSize()
           
 int getLeftBorderStyle()
           
 int getMaximumVisibleCharacters()
           
 java.lang.String getNullLabel()
           
 Color getRightBorderColor()
           
 int getRightBorderSize()
           
 int getRightBorderStyle()
           
 Color getTopBorderColor()
           
 int getTopBorderSize()
           
 int getTopBorderStyle()
           
 int getVerticalAlignment()
           
 int getVerticalTextPosition()
           
 int getWidth()
           
 int getWidthUnits()
           
 void preRender()
           Make changes to the visual representation of this component before Echo starts rendering the component.
 void setBackground(Color color)
          Sets the background color of the component.
 void setBorderColor(Color borderColor)
           
 void setBorderSize(int borderSize)
           
 void setBorderStyle(int style)
           
 void setBottomBorderColor(Color borderColor)
           
 void setBottomBorderSize(int borderSize)
           
 void setBottomBorderStyle(int borderStyle)
           
 void setFont(Font font)
          Sets the font of the component.
 void setHeight(int height)
           
 void setHeightUnits(int heightUnits)
           
 void setHorizontalAlignment(int alignment)
           
 void setHorizontalTextPosition(int newValue)
           
 void setLeftBorderColor(Color borderColor)
           
 void setLeftBorderSize(int borderSize)
           
 void setLeftBorderStyle(int borderStyle)
           
 void setMaximumVisibleCharacters(int maximumVisibleCharacters)
           
 void setNullLabel(java.lang.String nullLabel)
           
 void setRightBorderColor(Color borderColor)
           
 void setRightBorderSize(int borderSize)
           
 void setRightBorderStyle(int borderStyle)
           
 void setTopBorderSize(int borderSize)
           
 void setTopBorderStyle(int borderStyle)
           
 void setVerticalAlignment(int alignment)
           
 void setVerticalTextPosition(int newValue)
           
 void setWidth(int width)
           
 void setWidthUnits(int widthUnits)
           
 
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, rebind, removeValidator, setActionCommand, 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, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getIdentifier, getListenerList, getLocale, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setClientId, setEnabled, setFocused, 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
 

Constructor Detail

LargeStringViewer

public LargeStringViewer()

LargeStringViewer

public LargeStringViewer(java.lang.Class beanClass,
                         java.lang.String property,
                         java.lang.String constructionHints)
Method Detail

preRender

public void preRender()
Description copied from interface: PropertyComponent

Make changes to the visual representation of this component before Echo starts rendering the component.

Do not modify any bound javabeans in this method, as the changes to these will not be reflected properly on the screen.

Specified by:
preRender in interface PropertyComponent
Overrides:
preRender in class CustomComponent

getMaximumVisibleCharacters

public int getMaximumVisibleCharacters()

setMaximumVisibleCharacters

public void setMaximumVisibleCharacters(int maximumVisibleCharacters)

setFont

public void setFont(Font font)
Description copied from interface: Component
Sets the font of the component.

Specified by:
setFont in interface Component
Overrides:
setFont in class AbstractComponent
Parameters:
font - The new font of the component.

getFont

public Font getFont()
Description copied from interface: Component
Returns the font.

Specified by:
getFont in interface Component
Overrides:
getFont in class AbstractComponent
Returns:
The font of the component.

applyContext

public void applyContext()
Specified by:
applyContext in interface Precreation

getBackground

public Color getBackground()
Description copied from interface: Component
Returns the background color of the component.

Specified by:
getBackground in interface Component
Overrides:
getBackground in class AbstractComponent
Returns:
The background color of the component.

getBorderColor

public Color getBorderColor()

getBorderSize

public int getBorderSize()

getBorderStyle

public int getBorderStyle()

getBottomBorderColor

public Color getBottomBorderColor()

getBottomBorderSize

public int getBottomBorderSize()

getBottomBorderStyle

public int getBottomBorderStyle()

getForeground

public Color getForeground()
Description copied from interface: Component
Returns the foreground of the component.

Specified by:
getForeground in interface Component
Overrides:
getForeground in class AbstractComponent
Returns:
The foreground of the component.

getHeight

public int getHeight()

getHeightUnits

public int getHeightUnits()

getHorizontalAlignment

public int getHorizontalAlignment()

getHorizontalTextPosition

public int getHorizontalTextPosition()

getLeftBorderColor

public Color getLeftBorderColor()

getLeftBorderSize

public int getLeftBorderSize()

getLeftBorderStyle

public int getLeftBorderStyle()

getRightBorderColor

public Color getRightBorderColor()

getRightBorderSize

public int getRightBorderSize()

getRightBorderStyle

public int getRightBorderStyle()

getTopBorderColor

public Color getTopBorderColor()

getTopBorderSize

public int getTopBorderSize()

getTopBorderStyle

public int getTopBorderStyle()

getVerticalAlignment

public int getVerticalAlignment()

getVerticalTextPosition

public int getVerticalTextPosition()

getWidth

public int getWidth()

getWidthUnits

public int getWidthUnits()

setBackground

public void setBackground(Color color)
Description copied from interface: Component
Sets the background color of the component.

Specified by:
setBackground in interface Component
Overrides:
setBackground in class AbstractComponent
Parameters:
color - The new background color of the component.

setBorderColor

public void setBorderColor(Color borderColor)

setBorderSize

public void setBorderSize(int borderSize)

setBorderStyle

public void setBorderStyle(int style)

setBottomBorderColor

public void setBottomBorderColor(Color borderColor)

setBottomBorderSize

public void setBottomBorderSize(int borderSize)

setBottomBorderStyle

public void setBottomBorderStyle(int borderStyle)

setHeight

public void setHeight(int height)

setHeightUnits

public void setHeightUnits(int heightUnits)

setHorizontalAlignment

public void setHorizontalAlignment(int alignment)

setHorizontalTextPosition

public void setHorizontalTextPosition(int newValue)

setLeftBorderColor

public void setLeftBorderColor(Color borderColor)

setLeftBorderSize

public void setLeftBorderSize(int borderSize)

setLeftBorderStyle

public void setLeftBorderStyle(int borderStyle)

setRightBorderColor

public void setRightBorderColor(Color borderColor)

setRightBorderSize

public void setRightBorderSize(int borderSize)

setRightBorderStyle

public void setRightBorderStyle(int borderStyle)

setTopBorderSize

public void setTopBorderSize(int borderSize)

setTopBorderStyle

public void setTopBorderStyle(int borderStyle)

setVerticalAlignment

public void setVerticalAlignment(int alignment)

setVerticalTextPosition

public void setVerticalTextPosition(int newValue)

setWidth

public void setWidth(int width)

setWidthUnits

public void setWidthUnits(int widthUnits)

getNullLabel

public java.lang.String getNullLabel()

setNullLabel

public void setNullLabel(java.lang.String nullLabel)