Adempiere 3.5.2a

org.adempiere.webui.panel
Class ADForm

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.Window
                  extended by org.adempiere.webui.component.Window
                      extended by org.adempiere.webui.panel.ADForm
All Implemented Interfaces:
Serializable, Cloneable, Component, EventListener, IdSpace, ComponentCtrl
Direct Known Subclasses:
WAllocation, WArchiveViewer, WBOMDrop, WCharge, WFileImport, WInOutGen, WInvoiceGen, WMatch, WMerge, WPayPrint, WPaySelect, WSQLProcess, WTrxMaterial, WWFActivity

public abstract class ADForm
extends Window
implements EventListener

Adempiere Web UI custom form. The form is abstract, so specific types of custom form must be implemented

Author:
Andrew Kimball
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.Window
Window.ExtraCtrl
 
Field Summary
protected static CLogger logger
          The class' logging enabler
protected  int m_windowNo
          The identifying number of the window in which the form is housed
 
Fields inherited from class org.adempiere.webui.component.Window
MODE_EMBEDDED, MODE_MODAL, MODE_OVERLAPPED, MODE_POPUP
 
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
protected ADForm()
          Constructor
 
Method Summary
protected  int getAdFormId()
           
 String getTitle()
          Accessor for the form's title
protected  int getWindowNo()
           
protected  void init(int adFormId, String name)
          Initialise the form
 boolean isAsap()
           
 void onEvent(Event arg0)
           
static ADForm openForm(int adFormID)
          Create a new form corresponding to the specified identifier
 
Methods inherited from class org.zkoss.zul.Window
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible
 
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, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, 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, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPageBefore, setVariable, 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.IdSpace
getFellow, getFellowIfAny, getFellows
 

Field Detail

logger

protected static final CLogger logger
The class' logging enabler


m_windowNo

protected int m_windowNo
The identifying number of the window in which the form is housed

Constructor Detail

ADForm

protected ADForm()
Constructor

Parameters:
ctx - the context into which the form is being placed
adFormId - the Adempiere form identifier
Method Detail

getWindowNo

protected int getWindowNo()

getAdFormId

protected int getAdFormId()

init

protected void init(int adFormId,
                    String name)
Initialise the form

Parameters:
adFormId - the Adempiere form identifier
name - the name of the Adempiere form

getTitle

public String getTitle()
Accessor for the form's title

Overrides:
getTitle in class Window
Returns:
the title of the form

openForm

public static ADForm openForm(int adFormID)
Create a new form corresponding to the specified identifier

Parameters:
adFormID - The unique identifier for the form type
Returns:
The created form

isAsap

public boolean isAsap()
Returns:
false

onEvent

public void onEvent(Event arg0)
             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.