org.zkoss.zul.api
Interface Longbox

All Superinterfaces:
java.lang.Cloneable, Component, Constrainted, FormatInputElement, HtmlBasedComponent, InputElement, NumberInputElement, Scope, java.io.Serializable, XulElement
All Known Implementing Classes:
Longbox

public interface Longbox
extends NumberInputElement

An edit box for holding an integer.

Default HtmlBasedComponent.getZclass(): z-longbox.(since 3.5.0)

Since:
3.5.2
Author:
tomyeh

Field Summary
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Method Summary
 java.lang.Long getValue()
          Returns the value (in Long), might be null unless a constraint stops it.
 long intValue()
          Returns the value in int.
 long longValue()
          Returns the value in long.
 void setValue(java.lang.Long value)
          Sets the value (in Long).
 
Methods inherited from interface org.zkoss.zul.impl.api.NumberInputElement
getRoundingMode, setRoundingMode, setRoundingMode
 
Methods inherited from interface org.zkoss.zul.impl.api.FormatInputElement
getFormat, setFormat
 
Methods inherited from interface org.zkoss.zul.impl.api.InputElement
clearErrorMessage, clearErrorMessage, getCols, getErrorMessage, getMaxlength, getName, getRawText, getRawValue, getTabindex, getText, getType, isDisabled, isMultiline, isReadonly, isValid, select, setCols, setConstraint, setDisabled, setMaxlength, setName, setRawValue, setReadonly, setSelectedText, setSelectionRange, setTabindex, setText
 
Methods inherited from interface org.zkoss.zul.impl.api.XulElement
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex
 
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getChildren, getDefinition, getDesktop, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setId, setMold, setPage, setPageBefore, setParent, setVariable, setVisible, setWidgetListener, setWidgetOverride, unsetVariable
 
Methods inherited from interface org.zkoss.zk.ui.ext.Scope
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
 
Methods inherited from interface org.zkoss.zul.ext.Constrainted
getConstraint, setConstraint
 

Method Detail

getValue

java.lang.Long getValue()
                        throws WrongValueException
Returns the value (in Long), might be null unless a constraint stops it.

Throws:
WrongValueException - if user entered a wrong value

longValue

long longValue()
               throws WrongValueException
Returns the value in long. If null, zero is returned.

Throws:
WrongValueException

intValue

long intValue()
              throws WrongValueException
Returns the value in int. If null, zero is returned.

Throws:
WrongValueException

setValue

void setValue(java.lang.Long value)
              throws WrongValueException
Sets the value (in Long).

Throws:
WrongValueException - if value is wrong


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo