org.zkoss.zul.impl
Class FormatInputElement

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.impl.InputElement
                  extended by org.zkoss.zul.impl.FormatInputElement
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl, Constrainted
Direct Known Subclasses:
Datebox, NumberInputElement

public abstract class FormatInputElement
extends InputElement

A skeletal implementation for an input box with format.

Author:
tomyeh
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.impl.InputElement
InputElement.ExtraCtrl
 
Field Summary
 
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
FormatInputElement()
           
 
Method Summary
 java.lang.String getFormat()
          Returns the format.
 java.lang.String getOuterAttrs()
           
protected  boolean isAsapRequired(java.lang.String evtnm)
          Returns whether to send back the request of the specified event immediately -- non-deferable.
 void setFormat(java.lang.String format)
          Sets the format.
 
Methods inherited from class org.zkoss.zul.impl.InputElement
checkUserError, clearErrorMessage, coerceFromString, coerceToString, getAreaText, getCols, getConstraint, getErrorMessage, getInnerAttrs, getMaxlength, getName, getRawText, getRawValue, getTabindex, getTargetValue, getText, getType, isChildable, isDisabled, isMultiline, isReadonly, isValid, newExtraCtrl, onWrongValue, select, setCols, setConstraint, setConstraint, setDisabled, setMaxlength, setName, setRawValue, setReadonly, setSelectedText, setSelectionRange, setTabindex, setText, showCustomError, validate
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getAllOnClickAttrs, getContext, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormatInputElement

public FormatInputElement()
Method Detail

getFormat

public java.lang.String getFormat()
Returns the format.

Default: null (used what is defined in the format sheet).


setFormat

public void setFormat(java.lang.String format)
               throws org.zkoss.zk.ui.WrongValueException
Sets the format.

Throws:
org.zkoss.zk.ui.WrongValueException

getOuterAttrs

public java.lang.String getOuterAttrs()
Overrides:
getOuterAttrs in class InputElement

isAsapRequired

protected boolean isAsapRequired(java.lang.String evtnm)
Description copied from class: InputElement
Returns whether to send back the request of the specified event immediately -- non-deferable. Returns true if you want the component (on the server) to process the event immediately.

Default: Besides super.isAsapRequired(evtnm), it also returns true if evtnm is Events.ON_CHANGE, InputElement.getConstraint() is not null, and ClientConstraint.getClientValidation() is null.

Overrides:
isAsapRequired in class InputElement


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.