EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.jquery
Class Clock

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by echopoint.jquery.Clock
All Implemented Interfaces:
Alignable, Delegateable, Heightable, Sizeable, Widthable, Serializable, RenderIdSupport

public class Clock
extends Component
implements Sizeable, Alignable

The Clock class is a Component that presents the current time. It is based on the jQuery plugin jClock

Version:
$Id: Clock.java 168 2009-04-29 11:30:52Z hansho $
Author:
Hans Holmlund - 2009-03-23
See Also:
Serialized Form

Field Summary
static String PROPERTY_BORDER
           
static String PROPERTY_INSETS
           
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Fields inherited from interface echopoint.able.Widthable
PROPERTY_WIDTH
 
Fields inherited from interface echopoint.able.Heightable
PROPERTY_HEIGHT
 
Fields inherited from interface echopoint.able.Alignable
PROPERTY_ALIGNMENT
 
Constructor Summary
Clock()
           
 
Method Summary
 Alignment getAlignment()
          Returns the alignment of the Clock component.
 Border getBorder()
          Returns the Border that encloses the entire Clock.
 Extent getHeight()
          Returns the height extent of Clock component.
 Insets getInsets()
          Returns the default inset between the border and cells of the Clock.
 Extent getWidth()
          Returns the width extent of the Clock component.
 void setAlignment(Alignment newValue)
          Sets the alignment of the Clock component.
 void setBorder(Border newValue)
          Sets the Border that encloses the entire Clock.
 void setHeight(Extent newValue)
          Sets the height extent of the Clock component.
 void setInsets(Insets newValue)
          Sets the inset between the border and cells of the Clock.
 void setWidth(Extent newValue)
          Sets the width extent of the Clock component.
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface echopoint.able.Delegateable
getRenderProperty, getRenderProperty
 

Field Detail

PROPERTY_INSETS

public static final String PROPERTY_INSETS
See Also:
Constant Field Values

PROPERTY_BORDER

public static final String PROPERTY_BORDER
See Also:
Constant Field Values
Constructor Detail

Clock

public Clock()
Method Detail

getBorder

public Border getBorder()
Returns the Border that encloses the entire Clock.

Returns:
the border

getInsets

public Insets getInsets()
Returns the default inset between the border and cells of the Clock. This value will be overridden for a child component if a setting is specified in its ColumnLayoutData.

Returns:
the inset

setBorder

public void setBorder(Border newValue)
Sets the Border that encloses the entire Clock.

Parameters:
newValue - the new border

setInsets

public void setInsets(Insets newValue)
Sets the inset between the border and cells of the Clock. This value will be overridden for a child component if a setting is specified in its ColumnLayoutData.

Parameters:
newValue - the new inset

setWidth

public void setWidth(Extent newValue)
Sets the width extent of the Clock component.

Specified by:
setWidth in interface Widthable
Parameters:
newValue - - the new width extent of the Clock component

getWidth

public Extent getWidth()
Returns the width extent of the Clock component.

Specified by:
getWidth in interface Widthable
Returns:
the width extent of the Clock component.

setHeight

public void setHeight(Extent newValue)
Sets the height extent of the Clock component.

Specified by:
setHeight in interface Heightable
Parameters:
newValue - - the new height extent of the Clock component

getHeight

public Extent getHeight()
Returns the height extent of Clock component.

Specified by:
getHeight in interface Heightable
Returns:
the height extent of Clock component.

getAlignment

public Alignment getAlignment()
Returns the alignment of the Clock component.

Specified by:
getAlignment in interface Alignable
Returns:
the alignment

setAlignment

public void setAlignment(Alignment newValue)
Sets the alignment of the Clock component.

Specified by:
setAlignment in interface Alignable
Parameters:
newValue - the new alignment

EchoPoint API - 3.0.0b5
App Webcontainer