public void paintContent(PaintTarget target) throws PaintException {
// The tab ordering number
- if (tabIndex > 0) {
+ if (tabIndex != 0) {
target.addAttribute("tabindex", tabIndex);
}
return new TextField();
}
- /**
- * Gets the tab index of this field. The tab index property is used to
- * specify the natural tab ordering of fields.
+ /*
+ * (non-Javadoc)
*
- * @return the Tab index of this field. Negative value means unspecified.
+ * @see com.itmill.toolkit.ui.Component.Focusable#getTabIndex()
*/
public int getTabIndex() {
return tabIndex;
}
- /**
- * Gets the tab index of this field. The tab index property is used to
- * specify the natural tab ordering of fields.
+ /*
+ * (non-Javadoc)
*
- * @param tabIndex
- * the tab order of this component. Negative value means
- * unspecified.
+ * @see com.itmill.toolkit.ui.Component.Focusable#setTabIndex(int)
*/
public void setTabIndex(int tabIndex) {
this.tabIndex = tabIndex;
/**
* Gets the Tabulator index of this Focusable component.
*
- * @return the Positive tab order of this focusable. Negative of zero
- * means unspecified tab order.
+ * @return tab index set for this Focusable component
*/
public int getTabIndex();
/**
- * Sets the Tabulator index of this Focusable component.
+ * Sets the tab index of this field. The tab index property is used to
+ * specify the natural tab order of fields.
*
* @param tabIndex
- * the Positive tab order of this focusable. Negative of
- * zero means unspecified tab order.
+ * the tab order of this component. Indexes usually start
+ * from 1. Negative value means that field is not wanted
+ * to tabbing sequence.
*/
public void setTabIndex(int tabIndex);