com.itmill.toolkit.ui
Interface Component.Focusable

All Superinterfaces:
Component, EventListener, Paintable, Sizeable, VariableOwner
All Known Subinterfaces:
Field
All Known Implementing Classes:
AbstractField, AbstractSelect, Button, CheckBox, ComboBox, DateField, Form, InlineDateField, ListSelect, NativeSelect, OptionGroup, PopupDateField, ProgressIndicator, RichTextArea, Select, Slider, Table, TextField, Tree, TwinColSelect, Upload
Enclosing interface:
Component

public static interface Component.Focusable
extends Component

Interface implemented by components which can obtain input focus.


Nested Class Summary
 
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
 
Field Summary
 
Fields inherited from interface com.itmill.toolkit.terminal.Sizeable
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Method Summary
 void focus()
          Sets the focus to this component.
 int getTabIndex()
          Gets the Tabulator index of this Focusable component.
 void setTabIndex(int tabIndex)
          Sets the tab index of this field.
 
Methods inherited from interface com.itmill.toolkit.ui.Component
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.itmill.toolkit.terminal.Paintable
addListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugId
 
Methods inherited from interface com.itmill.toolkit.terminal.VariableOwner
changeVariables, isImmediate
 
Methods inherited from interface com.itmill.toolkit.terminal.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidth, setWidthUnits
 

Method Detail

focus

void focus()
Sets the focus to this component.


getTabIndex

int getTabIndex()
Gets the Tabulator index of this Focusable component.

Returns:
tab index set for this Focusable component

setTabIndex

void setTabIndex(int tabIndex)
Sets the tab index of this field. The tab index property is used to specify the natural tab order of fields.

Parameters:
tabIndex - the tab order of this component. Indexes usually start from 1. Negative value means that field is not wanted to tabbing sequence.


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