Adempiere 3.5.2a

org.adempiere.webui.panel
Class AbstractADWindowPanel

java.lang.Object
  extended by org.adempiere.webui.part.AbstractUIPart
      extended by org.adempiere.webui.panel.AbstractADWindowPanel
All Implemented Interfaces:
EventListener, ActionListener, ToolbarListener, UIPart, DataStatusListener, ASyncProcess
Direct Known Subclasses:
ADWindowPanel

public abstract class AbstractADWindowPanel
extends AbstractUIPart
implements ToolbarListener, EventListener, DataStatusListener, ActionListener, ASyncProcess

This class is based on org.compiere.apps.APanel written by Jorg Janke.

Version:
$Revision: 0.10 $
Author:
Jorg Janke, Ashley G Ramdass, Low Heng Sin

Field Summary
protected  IADTab adTab
           
protected  StatusBarPanel statusBar
           
protected  String title
           
protected  CWindowToolbar toolbar
           
 
Fields inherited from class org.adempiere.webui.part.AbstractUIPart
page
 
Constructor Summary
AbstractADWindowPanel(Properties ctx, int windowNo)
           
 
Method Summary
 void actionPerformed(ActionEvent event)
           
protected abstract  IADTab createADTab()
           
 Component createPart(Object parent)
           
 void dataStatusChanged(DataStatusEvent e)
          Data Changed
 void executeASync(ProcessInfo pi)
          Method to be executed async.
 IADTab getADTab()
           
 StatusBarPanel getStatusBar()
           
 String getTitle()
           
 CWindowToolbar getToolbar()
           
 boolean initPanel(int adWindowId, MQuery query)
           
 boolean isAsap()
           
 boolean isFirstTab()
           
 boolean isUILocked()
          Is the UI locked (Internal method)
 void lockUI(ProcessInfo pi)
          Lock User Interface.
 void onActiveWorkflows()
           
 void onAttachment()
           
 void onDelete()
           
 void onDetailRecord()
           
 void onEdit()
           
 void onEvent(Event event)
           
 boolean onExit()
           
 void onFind()
           
 void onFirst()
           
 void onGridToggle()
           
 void onHelp()
           
 void onHistoryRecords()
           
 void onIgnore()
           
 void onLast()
           
 void onNew()
           
 void onNext()
           
 void onParentRecord()
           
 void onPrevious()
           
 void onPrint()
           
 void onProductInfo()
           
 void onRefresh()
           
 void onReport()
           
 void onRequests()
           
 void onSave()
           
 void onZoomAcross()
           
 void unlockUI(ProcessInfo pi)
          Unlock User Interface.
 
Methods inherited from class org.adempiere.webui.part.AbstractUIPart
doCreatePart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.adempiere.webui.part.UIPart
getComponent
 

Field Detail

statusBar

protected StatusBarPanel statusBar

adTab

protected IADTab adTab

toolbar

protected CWindowToolbar toolbar

title

protected String title
Constructor Detail

AbstractADWindowPanel

public AbstractADWindowPanel(Properties ctx,
                             int windowNo)
Method Detail

createPart

public Component createPart(Object parent)
Specified by:
createPart in interface UIPart
Overrides:
createPart in class AbstractUIPart

getStatusBar

public StatusBarPanel getStatusBar()

createADTab

protected abstract IADTab createADTab()

initPanel

public boolean initPanel(int adWindowId,
                         MQuery query)

getTitle

public String getTitle()

onDetailRecord

public void onDetailRecord()
Specified by:
onDetailRecord in interface ToolbarListener

onParentRecord

public void onParentRecord()
Specified by:
onParentRecord in interface ToolbarListener

onFirst

public void onFirst()
Specified by:
onFirst in interface ToolbarListener

onLast

public void onLast()
Specified by:
onLast in interface ToolbarListener

onNext

public void onNext()
Specified by:
onNext in interface ToolbarListener

onPrevious

public void onPrevious()
Specified by:
onPrevious in interface ToolbarListener

onHistoryRecords

public void onHistoryRecords()

onAttachment

public void onAttachment()

onGridToggle

public void onGridToggle()

onExit

public boolean onExit()

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

isFirstTab

public boolean isFirstTab()

onRefresh

public void onRefresh()
Specified by:
onRefresh in interface ToolbarListener

onHelp

public void onHelp()

onNew

public void onNew()
Specified by:
onNew in interface ToolbarListener

onFind

public void onFind()

onIgnore

public void onIgnore()
Specified by:
onIgnore in interface ToolbarListener

onEdit

public void onEdit()
Specified by:
onEdit in interface ToolbarListener

onSave

public void onSave()

onDelete

public void onDelete()

onPrint

public void onPrint()
Specified by:
onPrint in interface ToolbarListener

onReport

public void onReport()
Specified by:
onReport in interface ToolbarListener

onZoomAcross

public void onZoomAcross()

onActiveWorkflows

public void onActiveWorkflows()

onRequests

public void onRequests()

onProductInfo

public void onProductInfo()

actionPerformed

public void actionPerformed(ActionEvent event)
Specified by:
actionPerformed in interface ActionListener

getADTab

public IADTab getADTab()

executeASync

public void executeASync(ProcessInfo pi)
Description copied from interface: ASyncProcess
Method to be executed async. Called from the Worker

Specified by:
executeASync in interface ASyncProcess
Parameters:
pi - ProcessInfo

isUILocked

public boolean isUILocked()
Description copied from interface: ASyncProcess
Is the UI locked (Internal method)

Specified by:
isUILocked in interface ASyncProcess
Returns:
true, if UI is locked

lockUI

public void lockUI(ProcessInfo pi)
Description copied from interface: ASyncProcess
Lock User Interface. Called from the Worker before processing

Specified by:
lockUI in interface ASyncProcess
Parameters:
pi - process info

unlockUI

public void unlockUI(ProcessInfo pi)
Description copied from interface: ASyncProcess
Unlock User Interface. Called from the Worker when processing is done

Specified by:
unlockUI in interface ASyncProcess
Parameters:
pi - result of execute ASync call

getToolbar

public CWindowToolbar getToolbar()

Adempiere 3.5.2a

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