org.zkoss.zul
Class Tabpanel

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.Tabpanel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.sys.ComponentCtrl

public class Tabpanel
extends XulElement

A tab panel.

Default getSclass(): tabpanel if the default mold is used for the tabbox (getTabbox()), or tabpanel-mold if other mold is used (where mold is the value returned by AbstractComponent.getMold().

Author:
tomyeh
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
 
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
Tabpanel()
           
 
Method Summary
 int getIndex()
          Returns the index of this panel, or -1 if it doesn't belong to any tabpanels.
 Tab getLinkedTab()
          Returns the tab associated with this tab panel.
 java.lang.String getOuterAttrs()
           
 java.lang.String getSclass()
          Returns the style class.
 Tabbox getTabbox()
          Returns the tabbox owns this component.
 boolean isSelected()
          Returns whether this tab panel is selected.
 boolean isVisible()
           
 void setParent(org.zkoss.zk.ui.Component parent)
           
 
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, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, newExtraCtrl, 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, clone, 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, insertBefore, invalidate, isChildable, isListenerAvailable, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tabpanel

public Tabpanel()
Method Detail

getTabbox

public Tabbox getTabbox()
Returns the tabbox owns this component.


getLinkedTab

public Tab getLinkedTab()
Returns the tab associated with this tab panel.


isSelected

public boolean isSelected()
Returns whether this tab panel is selected.


getIndex

public int getIndex()
Returns the index of this panel, or -1 if it doesn't belong to any tabpanels.


getOuterAttrs

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

getSclass

public java.lang.String getSclass()
Returns the style class.

The default style class, i.e., the style class is not defined (i.e., HtmlBasedComponent.setSclass(java.lang.String) is not called or called with null or empty): it returns "tabpanel" if AbstractComponent.getMold() of getTabbox() returns "default", or "tabpanel-mode" if other mold is used, where mode is the value returned by AbstractComponent.getMold().

Overrides:
getSclass in class org.zkoss.zk.ui.HtmlBasedComponent

isVisible

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

setParent

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


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