nl.coderight.jazz.form.control
Class TabControl
java.lang.Object
nl.coderight.jazz.form.FormField<V>
nl.coderight.jazz.form.FormControl
nl.coderight.jazz.form.control.TabControl
public class TabControl
- extends FormControl
A Control that lets the user switch between a group of fields by clicking on a tab.
Example:
TabItem tab = new TabItem("title");
tab.setSelectEvent(...);
TabControl tabs = new TabControl();
tabs.addTab(tab, ...);
tabs.addTab(new TabItem(...), ...);
event-handler:
- onChange
- See Also:
JTabbedPane
,
TabItem
Methods inherited from class nl.coderight.jazz.form.FormControl |
addField, addField, focus, getBindID, getFields, getFocusComponent, hasFocus, registerKeyboardAction, setComponent, setEnabled, setLayout, setTitle |
Methods inherited from class nl.coderight.jazz.form.FormField |
dispatchEvent, dispose, focusNextField, focusPreviousField, getBackground, getBorder, getComponent, getCursor, getDataBinding, getForeground, getForm, getLabel, getParent, getPreferredSize, getToolTip, getValue, isBindable, isChanged, isEnabled, isFocusable, isOpaque, isReadonly, isShowing, isValueChanged, isVisible, onClick, onDoubleClick, onFocusGained, onFocusLost, onMouseEnter, onMouseLeave, onPopup, setBackground, setBindID, setBorder, setChanged, setComponent, setCursor, setDataBinding, setFocusable, setForeground, setOnFocusGainedEvent, setOnFocusLostEvent, setOpaque, setPopupMenu, setPreferredSize, setReadonly, setToolTip, setValue, setVisible, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TabControl
public TabControl()
setFocusTraversingEnabled
public void setFocusTraversingEnabled(boolean enabled)
- Enables or disables focus traversing through tabs.
That is, when the focus is on the last field of a tab,
forward focus moves to the first field on the next tab.
setTabLayoutPolicy
public void setTabLayoutPolicy(TabControl.TabLayoutPolicy tabLayoutPolicy)
setTabPlacement
public void setTabPlacement(TabControl.TabPlacement tabPlacement)
getTabCount
public int getTabCount()
addTab
public void addTab(TabItem tab,
FormField field)
removeTab
public void removeTab(TabItem tab)
getSelectedTab
public TabItem getSelectedTab()
setSelectedTab
public void setSelectedTab(TabItem tab)
setOnChangeEvent
public void setOnChangeEvent(Event onChangeEvent)
onChange
protected void onChange()
- Overrides:
onChange
in class FormField
focusField
public void focusField(FormField field)
- Overrides:
focusField
in class FormControl
focusNextField
public void focusNextField(FormField field)
- Overrides:
focusNextField
in class FormControl
focusPreviousField
public void focusPreviousField(FormField field)
- Overrides:
focusPreviousField
in class FormControl
Copyright 2010 CodeRight, All rights reserved.