org.kalmeo.kuix.widget
Class TabItem

java.lang.Object
  extended by org.kalmeo.kuix.widget.Widget
      extended by org.kalmeo.kuix.widget.TabItem

public class TabItem
extends Widget

This class represents a tab item.

For further informations, visit the Kuix widgets reference page.

Author:
bbeaulant

Nested Class Summary
 class TabItem.TabItemButton
          This class represents the tabItem button.
 
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
TabItem()
          Construct a TabItem
 
Method Summary
protected  void doLayout()
          Layout the widget if its layout is defined.
 TabItem.TabItemButton getButton()
           
protected  java.lang.Object getDefaultStylePropertyValue(java.lang.String name)
          Returns the de default style property value for name property, or null.
 FocusManager getFocusManager()
          Used for popup like widgets
 java.lang.String getIcon()
           
 Widget getInternalChildInstance(java.lang.String tag)
          Returns the first internal child instance corresponding to the given tag.
 java.lang.String getLabel()
           
 LayoutData getLayoutData()
           
protected  void internalSetSelected(boolean selected, boolean propagateToTabFolder)
           
 boolean isEnabled()
           
 boolean isSelected()
           
protected  void onAdded(Widget parent)
          Event called when the widjet is added to parent.
protected  void onRemoved(Widget parent)
          Event called when the widjet is removed from parent.
 boolean setAttribute(java.lang.String name, java.lang.String value)
          Set the value to the specified attribute representing by the name
 void setEnabled(boolean enabled)
           
 void setIcon(java.lang.String icon)
           
 void setLabel(java.lang.String label)
           
 void setOnSelect(java.lang.String onSelect)
          The onSelect to set
 void setOnUnselect(java.lang.String onUnselect)
          The onUnselect to set
 void setSelected(boolean selected)
           
 
Methods inherited from class org.kalmeo.kuix.widget.Widget
add, add, bringNear, bringToFront, catchChildrenFrom, cleanUp, cleanUpChildren, clearCachedStyle, getAlign, getAttribute, getAuthorStyle, getAvailablePseudoClasses, getBackgroundAlign, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBorderAlign, getBorderColor, getBorderImage, getBorderStroke, getCachedMetrics, getChild, getColor, getDataProvider, getDesktop, getDisplayX, getDisplayY, getGap, getGrayedColor, getHeight, getId, getInheritedTag, getInnerHeight, getInnerWidth, getInsets, getLastChild, getLayout, getMargin, getMinSize, getOtherFocus, getPadding, getPreferredSize, getSpan, getStyleClasses, getStylePropertyValue, getStyles, getTag, getWeight, getWidget, getWidgetAt, getWidgetAt, getWidth, getX, getY, hasBindInstruction, hasShortcutKeyCodes, hasShortcuts, invalidate, invalidate, invalidateAppearance, invalidateAppearanceRegion, invalidateStylePropertiesCache, isFocusable, isFocused, isFocusWidgetChild, isIndividualyVisible, isInvalidated, isInWidgetTree, isObjectAttribute, isPseudoClassCompatible, isShortcutKeyCodeCompatible, isVisible, markAsValidate, needToComputePreferredSize, onChildAdded, onChildRemoved, onFocus, onLostFocus, paint, paintBackground, paintBorder, paintChildrenImpl, paintImpl, paintMosaicImage, parseAuthorStyle, processActionEvent, processDataBindEvent, processFocusEvent, processItemsModelUpdateEvent, processKeyEvent, processModelUpdateEvent, processPointerEvent, processShortcutKeyEvent, propagateFocusEvent, remove, removeAll, removeAttributeBindInstruction, requestBackwardFocus, requestFocus, requestForwardFocus, sendToBack, setAttributeBindInstruction, setAuthorStyle, setBounds, setDataProvider, setId, setObjectAttribute, setShortcutKeyCodes, setShortcuts, setStyleClass, setStyleClasses, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabItem

public TabItem()
Construct a TabItem

Method Detail

setAttribute

public boolean setAttribute(java.lang.String name,
                            java.lang.String value)
Description copied from class: Widget
Set the value to the specified attribute representing by the name

Overrides:
setAttribute in class Widget
Returns:
true if the attribute exists

getInternalChildInstance

public Widget getInternalChildInstance(java.lang.String tag)
Description copied from class: Widget
Returns the first internal child instance corresponding to the given tag.

Overrides:
getInternalChildInstance in class Widget
Returns:
the child instance if it exists.

getFocusManager

public FocusManager getFocusManager()
Description copied from class: Widget
Used for popup like widgets

Overrides:
getFocusManager in class Widget
Returns:
The special FocusManager

getLayoutData

public LayoutData getLayoutData()
Overrides:
getLayoutData in class Widget
Returns:
the layoutData

getDefaultStylePropertyValue

protected java.lang.Object getDefaultStylePropertyValue(java.lang.String name)
Description copied from class: Widget
Returns the de default style property value for name property, or null.

Overrides:
getDefaultStylePropertyValue in class Widget
Returns:
The de default style property value for name property

getButton

public TabItem.TabItemButton getButton()
Returns:
the tabItem button

getLabel

public java.lang.String getLabel()
Returns:
the label

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - the label to set

getIcon

public java.lang.String getIcon()
Returns:
the icon

setIcon

public void setIcon(java.lang.String icon)
Parameters:
icon - the icon to set

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - the enabled to set

isSelected

public boolean isSelected()
Returns:
the selected

setSelected

public void setSelected(boolean selected)
Parameters:
selected - the selected to set

internalSetSelected

protected void internalSetSelected(boolean selected,
                                   boolean propagateToTabFolder)
Parameters:
selected - the selected to set
propagateToTabFolder -

setOnSelect

public void setOnSelect(java.lang.String onSelect)
The onSelect to set


setOnUnselect

public void setOnUnselect(java.lang.String onUnselect)
The onUnselect to set


doLayout

protected void doLayout()
Description copied from class: Widget
Layout the widget if its layout is defined.

Overrides:
doLayout in class Widget

onAdded

protected void onAdded(Widget parent)
Description copied from class: Widget
Event called when the widjet is added to parent.

Overrides:
onAdded in class Widget

onRemoved

protected void onRemoved(Widget parent)
Description copied from class: Widget
Event called when the widjet is removed from parent.

Overrides:
onRemoved in class Widget


Copyright © 2007-2008 Kalmeo. All Rights Reserved.