|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kalmeo.kuix.widget.Widget
org.kalmeo.kuix.widget.List
org.kalmeo.kuix.widget.TabFolder
public class TabFolder
This class represents a tab folder.
For further informations, visit the Kuix widgets reference page.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget |
---|
Widget.BindInstruction |
Field Summary |
---|
Fields inherited from class org.kalmeo.kuix.widget.Widget |
---|
bindInstructions, DEFAULT_ALIGN, DEFAULT_BACKGROUND_ALIGN, DEFAULT_BACKGROUND_REPEAT, DEFAULT_BORDER, DEFAULT_GAP, DEFAULT_MARGIN, DEFAULT_MIN_SIZE, DEFAULT_PADDING, DEFAULT_SPAN, DEFAULT_WEIGHT, next, parent, previous |
Constructor Summary | |
---|---|
TabFolder()
Construct a TabFolder |
Method Summary | |
---|---|
Widget |
add(Widget widget)
Add a Widget to this as child |
void |
addTabItem(TabItem tabItem)
Add a new TabItem |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the value of the specified attribute |
int |
getBackwardTabKey()
Returns the backwardTabKey. |
ScrollPane |
getButtonsContainer()
Returns the buttonsContainer. |
Widget |
getContainer()
Returns the container. |
TabItem |
getCurrentTabItem()
|
Widget |
getDefaultTabItem()
Returns the defaultTabItem. |
int |
getForwardTabKey()
Returns the forwardTabKey. |
Widget |
getInternalChildInstance(java.lang.String tag)
Returns the first internal child instance corresponding to the given tag . |
Layout |
getLayout()
|
boolean |
isFocusWidgetChild()
Check if this Widget is a child of a focused widget. |
protected void |
onAdded(Widget parent)
Event called when the widjet is added to parent . |
boolean |
processKeyEvent(byte type,
int kuixKeyCode)
Process a key event |
protected void |
propagateFocusEvent(Widget focusedWidget,
boolean lost)
Propagate focus lost or gain event to widget's children. |
void |
removeAll()
Remove all childs. |
void |
removeAllItems()
Remove all items |
void |
selectNextTab()
Select the next enabled tab. |
protected void |
selectOtherTab(boolean forward,
boolean unselectIfNoOther)
Select an other enabled tab. |
void |
selectPreviousTab()
Select the previous enabled tab. |
boolean |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value to the specified attribute representing by
the name |
void |
setBackwardTabKey(int backwardTabKey)
Set the backwardTabKey. |
void |
setCurrentTabItem(TabItem tabItem)
Set the current TabItem (only if this instance is a child of the
TabFolder ) |
void |
setForwardTabKey(int forwardTabKey)
Set the forwardTabKey. |
Methods inherited from class org.kalmeo.kuix.widget.List |
---|
addItem, addItem, addItem, addItem, getDefaultStylePropertyValue, getItemWidget, getRenderer, isObjectAttribute, processItemsModelUpdateEvent, removeItem, setItems, setObjectAttribute, setRenderer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TabFolder()
TabFolder
Method Detail |
---|
public boolean setAttribute(java.lang.String name, java.lang.String value)
Widget
value
to the specified attribute representing by
the name
setAttribute
in class List
true
if the attribute existspublic java.lang.Object getAttribute(java.lang.String name)
Widget
getAttribute
in class Widget
public Widget getInternalChildInstance(java.lang.String tag)
Widget
tag
.
getInternalChildInstance
in class Widget
public boolean isFocusWidgetChild()
Widget
Widget
is a child of a focused widget.
isFocusWidgetChild
in class Widget
true
if this Widget
is a child of a
focused widgetpublic Layout getLayout()
getLayout
in class Widget
public Widget getDefaultTabItem()
TabItem
used if no other tab are enabled.
public int getBackwardTabKey()
public void setBackwardTabKey(int backwardTabKey)
backwardTabKey
- to setpublic int getForwardTabKey()
public void setForwardTabKey(int forwardTabKey)
forwardTabKey
- to setpublic ScrollPane getButtonsContainer()
TabItem.TabItemButton
).
public Widget getContainer()
public TabItem getCurrentTabItem()
public void setCurrentTabItem(TabItem tabItem)
TabItem
(only if this instance is a child of the
TabFolder
)
tabItem
- public Widget add(Widget widget)
Widget
Widget
to this as child
add
in class Widget
widget
- The Widget
to add
Widget
public void addTabItem(TabItem tabItem)
TabItem
tabItem
- public void removeAllItems()
List
removeAllItems
in class List
public void removeAll()
Widget
removeAll
in class Widget
protected void selectOtherTab(boolean forward, boolean unselectIfNoOther)
forward
- unselectIfNoOther
- public void selectPreviousTab()
public void selectNextTab()
public boolean processKeyEvent(byte type, int kuixKeyCode)
Widget
processKeyEvent
in class Widget
true
if the event is treated by the widgetprotected void propagateFocusEvent(Widget focusedWidget, boolean lost)
Widget
propagateFocusEvent
in class Widget
protected void onAdded(Widget parent)
Widget
widjet
is added to parent
.
onAdded
in class Widget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |