Package org.adempiere.webui.component
Class Tabs
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Tabs
-
- org.adempiere.webui.component.Tabs
-
- All Implemented Interfaces:
Serializable
,Cloneable
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
,org.zkoss.zk.ui.ext.Scope
,org.zkoss.zk.ui.sys.ComponentCtrl
public class Tabs extends org.zkoss.zul.Tabs implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Tabs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dragDropTab(org.zkoss.zk.ui.event.DropEvent dropEvent)
protected boolean
isValidateDragDropComponent(org.zkoss.zk.ui.Component dropComp, org.zkoss.zk.ui.Component draggComp)
just allow drag|dropTab
on sameTabs
void
onChildAdded(org.zkoss.zk.ui.Component child)
override to set drag|drop for tab depends onTabbox.isSupportTabDragDrop()
void
onEvent(org.zkoss.zk.ui.event.Event event)
handle when user drop tabprotected void
setDragDropTab(org.zkoss.zul.Tab tab)
setupTab
to support drag|dropvoid
setParent(org.zkoss.zk.ui.Component parent)
protected void
unsetDragDropTab(org.zkoss.zul.Tab tab)
setupTab
to un-support drag|drop-
Methods inherited from class org.zkoss.zul.Tabs
beforeChildAdded, beforeParentChanged, getAlign, getTabbox, getWidth, getZclass, insertBefore, invalidate, onChildRemoved, renderProperties, setAlign
-
Methods inherited from class org.zkoss.zul.impl.XulElement
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
-
-
-
Method Detail
-
setParent
public void setParent(org.zkoss.zk.ui.Component parent)
- Specified by:
setParent
in interfaceorg.zkoss.zk.ui.Component
- Overrides:
setParent
in classorg.zkoss.zk.ui.AbstractComponent
-
onChildAdded
public void onChildAdded(org.zkoss.zk.ui.Component child)
override to set drag|drop for tab depends onTabbox.isSupportTabDragDrop()
- Specified by:
onChildAdded
in interfaceorg.zkoss.zk.ui.sys.ComponentCtrl
- Overrides:
onChildAdded
in classorg.zkoss.zul.Tabs
-
setDragDropTab
protected void setDragDropTab(org.zkoss.zul.Tab tab)
setupTab
to support drag|drop- Parameters:
tab
-
-
unsetDragDropTab
protected void unsetDragDropTab(org.zkoss.zul.Tab tab)
setupTab
to un-support drag|drop- Parameters:
tab
-
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
handle when user drop tab- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
dragDropTab
protected void dragDropTab(org.zkoss.zk.ui.event.DropEvent dropEvent)
- Parameters:
dropEvent
-
-
isValidateDragDropComponent
protected boolean isValidateDragDropComponent(org.zkoss.zk.ui.Component dropComp, org.zkoss.zk.ui.Component draggComp)
just allow drag|dropTab
on sameTabs
- Parameters:
dropComp
-draggComp
-- Returns:
-
-