Adempiere 3.5.2a

org.adempiere.webui.component
Class WStatusBar

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.Grid
                  extended by org.adempiere.webui.component.Grid
                      extended by org.adempiere.webui.component.WStatusBar
All Implemented Interfaces:
Serializable, Cloneable, Component, EventListener, ComponentCtrl

public class WStatusBar
extends Grid
implements EventListener

Web UI status bar. Based upon the rich client's StatusBar. The basic status bar contains one or both of (a) a general status description and (b) a database status description. In addition, components can be added to the status bar to extend its functionaility

Author:
Andrew Kimball
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.Grid
Grid.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
WStatusBar()
          Constructor for a Standard Status Bar.
 
Method Summary
 void addStatusComponent(Component component)
          Add Component to East of StatusBar
 String getStatusLine()
          Get Status Line text.
 void onEvent(Event evt)
           
 void setStatusDB(int no)
          Set Status DB Info
 void setStatusDB(String text)
          Set Status DB Info
 void setStatusDB(String text, DataStatusEvent dse)
          Set Status DB Info
 void setStatusLine(String text)
          Set Standard Status Line (non error)
 void setStatusLine(String text, boolean error)
          Set Status Line
 void setStatusToolTip(String tip)
          Set ToolTip of StatusLine
 
Methods inherited from class org.adempiere.webui.component.Grid
makeNoStrip
 
Methods inherited from class org.zkoss.zul.Grid
clone, getActivePage, getAlign, getCell, getColumns, getFoot, getHeads, getInnerBottom, getInnerHeight, getInnerTop, getInnerWidth, getModel, getOddRowSclass, getOuterAttrs, getPageCount, getPageSize, getPaginal, getPaging, getPagingPosition, getPreloadSize, getRowRenderer, getRows, insertBefore, isFixedLayout, newExtraCtrl, onInitRender, removeChild, renderAll, renderItems, renderRow, renderRows, setActivePage, setAlign, setFixedLayout, setInnerBottom, setInnerHeight, setInnerTop, setInnerWidth, setModel, setMold, setOddRowSclass, setPageSize, setPaginal, setPagingPosition, setPreloadSize, setRowRenderer, setRowRenderer
 
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, 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, 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, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, 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
 

Constructor Detail

WStatusBar

public WStatusBar()
Constructor for a Standard Status Bar.

Method Detail

getStatusLine

public final String getStatusLine()
Get Status Line text.

Returns:
StatusLine text

setStatusLine

public final void setStatusLine(String text,
                                boolean error)
Set Status Line

Parameters:
text - text
error - error

setStatusToolTip

public final void setStatusToolTip(String tip)
Set ToolTip of StatusLine

Parameters:
tip - tooltip text

setStatusLine

public final void setStatusLine(String text)
Set Standard Status Line (non error)

Parameters:
text - text to display on the status line

setStatusDB

public final void setStatusDB(String text,
                              DataStatusEvent dse)
Set Status DB Info

Parameters:
text - description of database status
dse - data status event

setStatusDB

public final void setStatusDB(String text)
Set Status DB Info

Parameters:
text - description of database status

setStatusDB

public final void setStatusDB(int no)
Set Status DB Info

Parameters:
no - Database status identifier

addStatusComponent

public final void addStatusComponent(Component component)
Add Component to East of StatusBar

Parameters:
component - component

onEvent

public void onEvent(Event evt)
             throws Exception
Specified by:
onEvent in interface EventListener
Throws:
Exception

Adempiere 3.5.2a

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