org.zkoss.zul
Class Tabbox

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.Tabbox
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl

public class Tabbox
extends XulElement

A tabbox.

Event:

  1. org.zkoss.zk.ui.event.SelectEvent is sent when user changes the tab.

Mold:

default
The default tabbox.
accordion
The accordion tabbox.

Author:
tomyeh
See Also:
Serialized Form

Nested Class Summary
protected  class Tabbox.ExtraCtrl
          A utility class to implement AbstractComponent.getExtraCtrl().
 
Field Summary
 
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
Tabbox()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getOrient()
          Returns the orient.
 java.lang.String getOuterAttrs()
           
 java.lang.String getPanelSpacing()
          Returns the spacing between Tabpanel.
 int getSelectedIndex()
          Returns the selected index.
 Tabpanel getSelectedPanel()
          Returns the selected tab panel.
 Tab getSelectedTab()
          Returns the selected tab.
 Tabpanels getTabpanels()
          Returns the tabpanels that this tabbox owns.
 Tabs getTabs()
          Returns the tabs that this tabbox owns.
 boolean insertBefore(org.zkoss.zk.ui.Component child, org.zkoss.zk.ui.Component insertBefore)
           
protected  java.lang.Object newExtraCtrl()
           
 void onChildRemoved(org.zkoss.zk.ui.Component child)
           
 void onCreate()
          Auto-creates Tabpanel and select one of tabs if necessary.
 void setMold(java.lang.String mold)
           
 void setOrient(java.lang.String orient)
          Sets the orient.
 void setPanelSpacing(java.lang.String panelSpacing)
          Sets the spacing between Tabpanel.
 void setSelectedIndex(int j)
          Sets the selected index.
 void setSelectedPanel(Tabpanel panel)
          Sets the selected tab panel.
 void setSelectedTab(Tab tab)
          Sets the selected tab.
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isChildable, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tabbox

public Tabbox()
Method Detail

getTabs

public Tabs getTabs()
Returns the tabs that this tabbox owns.


getTabpanels

public Tabpanels getTabpanels()
Returns the tabpanels that this tabbox owns.


getPanelSpacing

public java.lang.String getPanelSpacing()
Returns the spacing between Tabpanel. This is used by certain molds, such as accordion.

Default: null (no spacing).


setPanelSpacing

public void setPanelSpacing(java.lang.String panelSpacing)
Sets the spacing between Tabpanel. This is used by certain molds, such as accordion.


getSelectedIndex

public int getSelectedIndex()
Returns the selected index.


setSelectedIndex

public void setSelectedIndex(int j)
Sets the selected index.


getSelectedPanel

public Tabpanel getSelectedPanel()
Returns the selected tab panel.


setSelectedPanel

public void setSelectedPanel(Tabpanel panel)
Sets the selected tab panel.


getSelectedTab

public Tab getSelectedTab()
Returns the selected tab.


setSelectedTab

public void setSelectedTab(Tab tab)
Sets the selected tab.


getOrient

public java.lang.String getOrient()
Returns the orient.

Default: "horizontal".

Note: only the default mold supports it (not supported if accordion).


setOrient

public void setOrient(java.lang.String orient)
               throws org.zkoss.zk.ui.WrongValueException
Sets the orient.

Parameters:
orient - either "horizontal" or "vertical".
Throws:
org.zkoss.zk.ui.WrongValueException

setMold

public void setMold(java.lang.String mold)
Specified by:
setMold in interface org.zkoss.zk.ui.Component
Overrides:
setMold in class org.zkoss.zk.ui.AbstractComponent

onCreate

public void onCreate()
Auto-creates Tabpanel and select one of tabs if necessary.


insertBefore

public boolean insertBefore(org.zkoss.zk.ui.Component child,
                            org.zkoss.zk.ui.Component insertBefore)
Specified by:
insertBefore in interface org.zkoss.zk.ui.Component
Overrides:
insertBefore in class org.zkoss.zk.ui.AbstractComponent

onChildRemoved

public void onChildRemoved(org.zkoss.zk.ui.Component child)
Specified by:
onChildRemoved in interface org.zkoss.zk.ui.Component
Overrides:
onChildRemoved in class org.zkoss.zk.ui.AbstractComponent

getOuterAttrs

public java.lang.String getOuterAttrs()
Overrides:
getOuterAttrs in class XulElement

clone

public java.lang.Object clone()
Specified by:
clone in interface org.zkoss.zk.ui.Component
Overrides:
clone in class org.zkoss.zk.ui.AbstractComponent

newExtraCtrl

protected java.lang.Object newExtraCtrl()
Overrides:
newExtraCtrl in class org.zkoss.zk.ui.HtmlBasedComponent


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.