|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.bebop.Completable
com.arsdigita.bebop.SimpleComponent
com.arsdigita.bebop.TextStylable
com.arsdigita.bebop.BlockStylable
com.arsdigita.bebop.form.Widget
com.arsdigita.bebop.form.Time
A class representing a time field in an HTML form.
DateTime
Nested Class Summary |
Nested classes inherited from class com.arsdigita.bebop.form.Widget |
Widget.ValidationGuard |
Field Summary |
Fields inherited from class com.arsdigita.bebop.form.Widget |
versionId |
Fields inherited from class com.arsdigita.bebop.BlockStylable |
ABSBOTTOM, ABSMIDDLE, BASELINE, BOTTOM, CENTER, FULL_WIDTH, INSERT, LEFT, MIDDLE, RIGHT, TEXTTOP, TOP |
Fields inherited from class com.arsdigita.bebop.SimpleComponent |
m_attr |
Fields inherited from interface com.arsdigita.bebop.util.BebopConstants |
BEBOP_BORDER, BEBOP_BOXPANEL, BEBOP_CELL, BEBOP_CHECKBOX, BEBOP_CHECKBOXGROUP, BEBOP_COLUMNPANEL, BEBOP_DATE, BEBOP_DATETIME, BEBOP_DHTMLEDITOR, BEBOP_FORMERRORS, BEBOP_FORMWIDGET, BEBOP_GRIDPANEL, BEBOP_LIST, BEBOP_MULTISELECT, BEBOP_OPTION, BEBOP_PAD, BEBOP_PADFRAME, BEBOP_PANELROW, BEBOP_PORTAL, BEBOP_PORTLET, BEBOP_RADIO, BEBOP_RADIOGROUP, BEBOP_SEG_BODY, BEBOP_SEG_HEADER, BEBOP_SEG_PANEL, BEBOP_SEGMENT, BEBOP_SELECT, BEBOP_TABLE, BEBOP_TABLEBODY, BEBOP_TABLEROW, BEBOP_TEXTAREA, versionId |
Fields inherited from interface com.arsdigita.bebop.Component |
BEBOP_XML_NS, CLASS, ID, ON_CLICK, STYLE |
Constructor Summary | |
Time(ParameterModel model)
Constructor. |
|
Time(ParameterModel model,
boolean showSeconds)
Constructor. |
|
Time(String name)
|
Method Summary | |
void |
generateWidget(PageState ps,
Element parent)
Generates the DOM for the given widget |
protected String |
getElementTag()
The XML tag for this derived class of Widget. |
String |
getType()
Returns a string naming the type of this widget. |
boolean |
isCompound()
Returns true if the widget consists of multiple HTML elements. |
void |
setDisabled()
Marks this widget as disabled, which has the effect of preventing the widget's value being submitted with the form, and will typically cause the widget to be 'grayed out' on the form. |
void |
setForm(Form f)
Sets the Form Object for this Widget. |
void |
setMaxLength(int length)
Sets the MAXLENGTH attributes for the INPUT tag used to render this form element. |
void |
setReadOnly()
Marks this widget as readonly, which has the effect of preventing the user from modifying the widget's contents. |
Methods inherited from class com.arsdigita.bebop.form.Widget |
addError, addError, addPrintListener, addValidationListener, clone, createParameterListener, firePrintEvent, fireValidation, generateErrors, generateXML, getDefaultValue, getErrors, getForm, getName, getParameterData, getParameterModel, getValue, isPassIn, register, removePrintListener, removeValidationListener, respond, setDefaultValue, setHint, setOnBlur, setOnChange, setOnFocus, setOnKeyUp, setOnSelect, setParameterModel, setPassIn, setPrintListener, setValidateInvisible, setValidationGuard, setValue, toString, validateInvisible |
Methods inherited from class com.arsdigita.bebop.BlockStylable |
setBorder, setBorder, setBorderColor, setHorizontalAlignment, setMargin, setMargin, setPadding, setPadding, setVerticalAlignment |
Methods inherited from class com.arsdigita.bebop.TextStylable |
setBackgroundColor, setColor |
Methods inherited from class com.arsdigita.bebop.SimpleComponent |
children, exportAttributes, getAttribute, getClassAttr, getIdAttr, getKey, getMetaDataAttribute, getStyleAttr, hasAttributes, isLocked, isVisible, lock, register, setAttribute, setClassAttr, setIdAttr, setKey, setMetaDataAttribute, setStyleAttr, setVisible |
Methods inherited from class com.arsdigita.bebop.Completable |
addCompletionListener, fireCompletionEvent |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Time(ParameterModel model)
public Time(ParameterModel model, boolean showSeconds)
public Time(String name)
Method Detail |
public String getType()
getType
in class Widget
public void setMaxLength(int length)
public boolean isCompound()
Widget
isCompound
in class Widget
protected String getElementTag()
getElementTag
in class Widget
public void generateWidget(PageState ps, Element parent)
Widget
Generates DOM fragment:
<bebop:formWidget name=... type=... value=... [onXXX=...]>
</bebop:formWidget>
generateWidget
in class Widget
public void setDisabled()
Widget
setDisabled
in class Widget
public void setReadOnly()
Widget
setReadOnly
in class Widget
public void setForm(Form f)
setForm
in class Widget
f
- The Form
Object for this Widget
IllegalStateException
- if form already set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |