com.itmill.toolkit.ui
Interface Field

All Superinterfaces:
Buffered, BufferedValidatable, Component, Component.Focusable, EventListener, Paintable, Property, Property.Editor, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Validatable, VariableOwner
All Known Implementing Classes:
AbstractField, Button, DateField, Form, ProgressIndicator, Select, Table, TextField, Tree

public interface Field
extends Component, BufferedValidatable, Property, Property.ValueChangeNotifier, Property.ValueChangeListener, Property.Editor, Component.Focusable

Author:
IT Mill Ltd.

Nested Class Summary
static class Field.ValueChangeEvent
          An Event object specifying the Field whose value has been changed.
 
Nested classes/interfaces inherited from interface com.itmill.toolkit.ui.Component
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener
 
Nested classes/interfaces inherited from interface com.itmill.toolkit.terminal.Paintable
Paintable.RepaintRequestEvent, Paintable.RepaintRequestListener
 
Nested classes/interfaces inherited from interface com.itmill.toolkit.data.Buffered
Buffered.SourceException
 
Nested classes/interfaces inherited from interface com.itmill.toolkit.data.Property
Property.ConversionException, Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer
 
Method Summary
 String getDescription()
           
 boolean isRequired()
          Is this field required.
 void setCaption(String caption)
          Sets the Caption.
 void setDescription(String caption)
          Sets the Description.
 void setRequired(boolean required)
          Sets the field required.
 
Methods inherited from interface com.itmill.toolkit.ui.Component
addListener, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyle, getWindow, isEnabled, isReadOnly, isVisible, removeListener, setEnabled, setParent, setReadOnly, setStyle, setVisible
 
Methods inherited from interface com.itmill.toolkit.terminal.Paintable
addListener, paint, removeListener, requestRepaint, requestRepaintRequests
 
Methods inherited from interface com.itmill.toolkit.terminal.VariableOwner
changeVariables, dependsOn, getDirectDependencies, isImmediate, removeDirectDependency
 
Methods inherited from interface com.itmill.toolkit.data.BufferedValidatable
isInvalidCommitted, setInvalidCommitted
 
Methods inherited from interface com.itmill.toolkit.data.Buffered
commit, discard, isModified, isReadThrough, isWriteThrough, setReadThrough, setWriteThrough
 
Methods inherited from interface com.itmill.toolkit.data.Validatable
addValidator, getValidators, isInvalidAllowed, isValid, removeValidator, setInvalidAllowed, validate
 
Methods inherited from interface com.itmill.toolkit.data.Property
getType, getValue, isReadOnly, setReadOnly, setValue, toString
 
Methods inherited from interface com.itmill.toolkit.data.Property.ValueChangeNotifier
addListener, removeListener
 
Methods inherited from interface com.itmill.toolkit.data.Property.ValueChangeListener
valueChange
 
Methods inherited from interface com.itmill.toolkit.data.Property.Viewer
getPropertyDataSource, setPropertyDataSource
 
Methods inherited from interface com.itmill.toolkit.ui.Component.Focusable
focus, getFocusableId, getTabIndex, setTabIndex
 

Method Detail

setCaption

void setCaption(String caption)
Sets the Caption.

Parameters:
caption -

getDescription

String getDescription()

setDescription

void setDescription(String caption)
Sets the Description.

Parameters:
caption -

isRequired

boolean isRequired()
Is this field required. Required fields must filled by the user.

Returns:
true if the field is required,otherwise false.
Since:
3.1

setRequired

void setRequired(boolean required)
Sets the field required. Required fields must filled by the user.

Parameters:
required - Is the field required.
Since:
3.1


Copyright © 2000-2008 IT Mill Ltd. All Rights Reserved.