net.sf.jzeno.echo.viewer
Class DateTimeViewer

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

public class DateTimeViewer
extends CustomComponent
implements Precreation

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
DateTimeViewer()
           
DateTimeViewer(java.lang.Class beanClass, java.lang.String property, java.lang.String constructionHints)
           
 
Method Summary
 void applyContext()
           
 java.lang.String getDateFormatString()
           
 Font getFont()
          Returns the font.
 java.lang.String getNullLabel()
           
 java.lang.String getPrimaryPostfix()
           
 java.lang.String getPrimaryPrefix()
           
 java.lang.String getPrimaryTimeZoneProperty()
           
 java.lang.String getSecondaryPostfix()
           
 java.lang.String getSecondaryPrefix()
           
 java.lang.String getSecondaryTimeZoneProperty()
           
 java.lang.String getTimeFormatString()
           
 int getWidth()
           
 int getWidthUnits()
           
 boolean isDoubleDisplay()
           
 void preRender()
           Make changes to the visual representation of this component before Echo starts rendering the component.
 void setDateFormatString(java.lang.String dateFormatString)
           
 void setDoubleDisplay(boolean doubleDisplay)
           
 void setFont(Font font)
          Sets the font of the component.
 void setNullLabel(java.lang.String nullLabel)
           
 void setPrimaryPostfix(java.lang.String primaryPostfix)
           
 void setPrimaryPrefix(java.lang.String primaryPrefix)
           
 void setPrimaryTimeZoneProperty(java.lang.String property)
           
 void setSecondaryPostfix(java.lang.String secondaryPostFix)
           
 void setSecondaryPrefix(java.lang.String secondaryPrefix)
           
 void setSecondaryTimeZoneProperty(java.lang.String property)
           
 void setTimeFormatString(java.lang.String timeFormatString)
           
 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, getBackground, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, 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, 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

PERCENT_UNITS

public static final int PERCENT_UNITS
See Also:
Constant Field Values

PIXEL_UNITS

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

DateTimeViewer

public DateTimeViewer()

DateTimeViewer

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

getDateFormatString

public java.lang.String getDateFormatString()

setDateFormatString

public void setDateFormatString(java.lang.String dateFormatString)

getTimeFormatString

public java.lang.String getTimeFormatString()

setTimeFormatString

public void setTimeFormatString(java.lang.String timeFormatString)

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

setPrimaryTimeZoneProperty

public void setPrimaryTimeZoneProperty(java.lang.String property)

getPrimaryTimeZoneProperty

public java.lang.String getPrimaryTimeZoneProperty()

setSecondaryTimeZoneProperty

public void setSecondaryTimeZoneProperty(java.lang.String property)

getSecondaryTimeZoneProperty

public java.lang.String getSecondaryTimeZoneProperty()

getPrimaryPostfix

public java.lang.String getPrimaryPostfix()

setPrimaryPostfix

public void setPrimaryPostfix(java.lang.String primaryPostfix)

getPrimaryPrefix

public java.lang.String getPrimaryPrefix()

setPrimaryPrefix

public void setPrimaryPrefix(java.lang.String primaryPrefix)

getSecondaryPostfix

public java.lang.String getSecondaryPostfix()

setSecondaryPostfix

public void setSecondaryPostfix(java.lang.String secondaryPostFix)

getSecondaryPrefix

public java.lang.String getSecondaryPrefix()

setSecondaryPrefix

public void setSecondaryPrefix(java.lang.String secondaryPrefix)

isDoubleDisplay

public boolean isDoubleDisplay()

setDoubleDisplay

public void setDoubleDisplay(boolean doubleDisplay)

setNullLabel

public void setNullLabel(java.lang.String nullLabel)

getNullLabel

public java.lang.String getNullLabel()

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getWidthUnits

public int getWidthUnits()

setWidthUnits

public void setWidthUnits(int widthUnits)

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