Adempiere 3.5.2a

org.adempiere.webui.panel
Class ADTabpanel

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.Div
                  extended by org.adempiere.webui.panel.ADTabpanel
All Implemented Interfaces:
Serializable, Cloneable, EventListener, ValueChangeListener, IADTabpanel, DataStatusListener, Evaluatee, Component, ComponentCtrl

public class ADTabpanel
extends Div
implements Evaluatee, EventListener, DataStatusListener, ValueChangeListener, IADTabpanel

This class is based on org.compiere.grid.GridController written by Jorg Janke. Changes have been brought for UI compatibility.

Version:
$Revision: 0.10 $
Author:
Jorg Janke, Ashley G Ramdass, Low Heng Sin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
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
ADTabpanel()
           
 
Method Summary
 void activate(boolean activate)
           
 void createUI()
           
 void dataStatusChanged(DataStatusEvent e)
          Data Changed
 void dynamicDisplay(int col)
           
 void editRecord(boolean edit)
           
 String get_ValueAsString(String variableName)
          Get Variable Value
 String getDisplayLogic()
           
 GridTab getGridTab()
           
 int getTabLevel()
           
 String getTitle()
           
 int getWindowNo()
           
 void init(AbstractADWindowPanel winPanel, int windowNo, GridTab gridTab, GridWindow gridWindow)
           
 boolean isAsap()
           
 boolean isCurrent()
           
 boolean isEditing()
           
 void onEvent(Event event)
           
 void query()
           
 void query(boolean onlyCurrentRows, int onlyCurrentDays, int maxRows)
           
 void refresh()
           
 void switchRowPresentation()
           
 void valueChange(ValueChangeEvent e)
           
 
Methods inherited from class org.zkoss.zul.Div
getAlign, getOuterAttrs, setAlign
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getCtrlKeys, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, newExtraCtrl, setClass, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendAsapAttr, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getCommand, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setPageBefore, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, smartUpdateValues, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, containsVariable, detach, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getFellow, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, setAttribute, setAttribute, setId, setMold, setPage, setPageBefore, setParent, setVariable, setVisible, smartUpdate, smartUpdateDeferred, smartUpdateValues, unsetVariable
 

Constructor Detail

ADTabpanel

public ADTabpanel()
Method Detail

init

public void init(AbstractADWindowPanel winPanel,
                 int windowNo,
                 GridTab gridTab,
                 GridWindow gridWindow)

createUI

public void createUI()
Specified by:
createUI in interface IADTabpanel

dynamicDisplay

public void dynamicDisplay(int col)
Specified by:
dynamicDisplay in interface IADTabpanel

getDisplayLogic

public String getDisplayLogic()
Specified by:
getDisplayLogic in interface IADTabpanel

getTitle

public String getTitle()
Specified by:
getTitle in interface IADTabpanel

get_ValueAsString

public String get_ValueAsString(String variableName)
Description copied from interface: Evaluatee
Get Variable Value

Specified by:
get_ValueAsString in interface Evaluatee
Parameters:
variableName -
Returns:
value

getTabLevel

public int getTabLevel()
Specified by:
getTabLevel in interface IADTabpanel
Returns:
The tab level of this Tabpanel

isCurrent

public boolean isCurrent()
Specified by:
isCurrent in interface IADTabpanel

getWindowNo

public int getWindowNo()

query

public void query()
Specified by:
query in interface IADTabpanel

query

public void query(boolean onlyCurrentRows,
                  int onlyCurrentDays,
                  int maxRows)
Specified by:
query in interface IADTabpanel

getGridTab

public GridTab getGridTab()
Specified by:
getGridTab in interface IADTabpanel

refresh

public void refresh()
Specified by:
refresh in interface IADTabpanel

activate

public void activate(boolean activate)
Specified by:
activate in interface IADTabpanel

isEditing

public boolean isEditing()
Specified by:
isEditing in interface IADTabpanel

editRecord

public void editRecord(boolean edit)
Specified by:
editRecord in interface IADTabpanel

isAsap

public boolean isAsap()

onEvent

public void onEvent(Event event)

dataStatusChanged

public void dataStatusChanged(DataStatusEvent e)
Description copied from interface: DataStatusListener
Data Changed

Specified by:
dataStatusChanged in interface DataStatusListener
Parameters:
e - event

valueChange

public void valueChange(ValueChangeEvent e)
Specified by:
valueChange in interface ValueChangeListener

switchRowPresentation

public void switchRowPresentation()
Specified by:
switchRowPresentation in interface IADTabpanel

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.