Adempiere 3.5.2a

org.compiere.model
Class GridWorkbench

java.lang.Object
  extended by org.compiere.model.GridWorkbench
All Implemented Interfaces:
Serializable

public class GridWorkbench
extends Object
implements Serializable

Window Workbench Model

Version:
$Id: GridWorkbench.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
static int TYPE_FORM
          Form
static int TYPE_PROCESS
          Process
static int TYPE_TASK
          Task
static int TYPE_WINDOW
          Window
 
Constructor Summary
GridWorkbench(Properties ctx)
          Workbench Model Constructor
GridWorkbench(Properties ctx, int AD_Window_ID)
          No Workbench - Just Frame for Window
 
Method Summary
 void dispose()
          Dispose
 void dispose(int index)
          Dispose of Window
 int getAD_Color_ID()
          Get AD_Color_ID
 int getAD_Color_ID(int index)
          Get AD_Color_ID of Window
 int getAD_Column_ID()
          Get Link AD_Column_ID
 int getAD_Image_ID()
          Get AD_Image_ID
 int getAD_Workbench_ID()
          Get Workbench
 String getDescription()
          Get Description
 String getDescription(int index)
          Get Description of Window
 String getHelp()
          Get Help
 String getHelp(int index)
          Get Help of Window
 Icon getIcon(int index)
          Get Icon of Window
 Image getImage(int index)
          Get Image Icon of Window
 GridWindow getMWindow(int index)
          Get Window Model of Window
 String getName()
          Get Name
 String getName(int index)
          Get Name of Window
 int getPA_Goal_ID()
          Get PA_Goal_ID
 MQuery getQuery()
          Get Workbench Query.
 int getWindowCount()
          Get Window Count
 int getWindowID(int index)
          Get ID for Window
 int getWindowNo(int index)
          Get WindowNo of Window
 Dimension getWindowSize()
          Get Window Size
 int getWindowType(int index)
          Get Window Type of Window
 boolean initWorkbench(int ad_Workbench_ID)
          Init Workbench
 void setMWindow(int index, GridWindow mw)
          Set Window Model of Window
 void setWindowNo(int index, int windowNo)
          Set WindowNo of Window
 String toString()
          String Representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_WINDOW

public static final int TYPE_WINDOW
Window

See Also:
Constant Field Values

TYPE_FORM

public static final int TYPE_FORM
Form

See Also:
Constant Field Values

TYPE_PROCESS

public static final int TYPE_PROCESS
Process

See Also:
Constant Field Values

TYPE_TASK

public static final int TYPE_TASK
Task

See Also:
Constant Field Values
Constructor Detail

GridWorkbench

public GridWorkbench(Properties ctx)
Workbench Model Constructor

Parameters:
ctx - context

GridWorkbench

public GridWorkbench(Properties ctx,
                     int AD_Window_ID)
No Workbench - Just Frame for Window

Parameters:
ctx - context
AD_Window_ID - window
Method Detail

initWorkbench

public boolean initWorkbench(int ad_Workbench_ID)
Init Workbench

Parameters:
ad_Workbench_ID - workbench
Returns:
true if initialized

toString

public String toString()
String Representation

Overrides:
toString in class Object
Returns:
info

dispose

public void dispose()
Dispose


getQuery

public MQuery getQuery()
Get Workbench Query.

Returns:
ColumnName=@#ColumnName@

getAD_Workbench_ID

public int getAD_Workbench_ID()
Get Workbench

Returns:
workbensch id

getName

public String getName()
Get Name

Returns:
name

getDescription

public String getDescription()
Get Description

Returns:
description

getHelp

public String getHelp()
Get Help

Returns:
help

getAD_Column_ID

public int getAD_Column_ID()
Get Link AD_Column_ID

Returns:
column

getAD_Image_ID

public int getAD_Image_ID()
Get AD_Image_ID

Returns:
image

getAD_Color_ID

public int getAD_Color_ID()
Get AD_Color_ID

Returns:
color

getPA_Goal_ID

public int getPA_Goal_ID()
Get PA_Goal_ID

Returns:
goal

getWindowCount

public int getWindowCount()
Get Window Count

Returns:
window count

getWindowType

public int getWindowType(int index)
Get Window Type of Window

Parameters:
index - index in workbench
Returns:
-1 if not valid

getWindowID

public int getWindowID(int index)
Get ID for Window

Parameters:
index - index in workbench
Returns:
-1 if not valid

setMWindow

public void setMWindow(int index,
                       GridWindow mw)
Set Window Model of Window

Parameters:
index - index in workbench
mw - model window

getMWindow

public GridWindow getMWindow(int index)
Get Window Model of Window

Parameters:
index - index in workbench
Returns:
model window

getName

public String getName(int index)
Get Name of Window

Parameters:
index - index in workbench
Returns:
Window Name or null if not set

getDescription

public String getDescription(int index)
Get Description of Window

Parameters:
index - index in workbench
Returns:
Window Description or null if not set

getHelp

public String getHelp(int index)
Get Help of Window

Parameters:
index - index in workbench
Returns:
Window Help or null if not set

getIcon

public Icon getIcon(int index)
Get Icon of Window

Parameters:
index - index in workbench
Returns:
Window Icon or null if not set

getImage

public Image getImage(int index)
Get Image Icon of Window

Parameters:
index - index in workbench
Returns:
Window Icon or null if not set

getAD_Color_ID

public int getAD_Color_ID(int index)
Get AD_Color_ID of Window

Parameters:
index - index in workbench
Returns:
Window Color or Workbench color if not set

setWindowNo

public void setWindowNo(int index,
                        int windowNo)
Set WindowNo of Window

Parameters:
index - index in workbench
windowNo - window no

getWindowNo

public int getWindowNo(int index)
Get WindowNo of Window

Parameters:
index - index in workbench
Returns:
WindowNo of Window if previously set, otherwise -1;

dispose

public void dispose(int index)
Dispose of Window

Parameters:
index - index in workbench

getWindowSize

public Dimension getWindowSize()
Get Window Size

Returns:
window size or null if not set

Adempiere 3.5.2a

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