Package org.compiere.model
Class GridWindow
java.lang.Object
org.compiere.model.GridWindow
- All Implemented Interfaces:
Serializable
Window Model
- Version:
- $Id: GridWindow.java,v 1.4 2006/07/30 00:51:02 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposestatic GridWindow
get
(Properties ctx, int WindowNo, int AD_Window_ID) Get Grid Windowstatic GridWindow
get
(Properties ctx, int WindowNo, int AD_Window_ID, boolean virtual) Get Grid Windowint
Get Window_IDgetColor()
Get ColorGet DescriptionGet EntityTypegetGridTab
(int ad_tab_id) GetGridTab
by Tab IDgetGridTab
(String ad_tab_uu) GetGridTab
by Tab UUIDgetHelp()
Get HelpgetHelpDoc
(boolean javaClient) Get Help HTML DocumentgetIcon()
Get Window IcongetImage()
Get Window IcongetModelUpdated
(boolean recalc) Get Model last UpdatedgetName()
Get NamegetTab
(int i) int
Get number of Tabsint
getTabIndex
(GridTab tab) int
Get WindowNoGet Window SizeGet Window Typevoid
initTab
(int index) Initialize tabboolean
isSOTrx()
boolean
isTabInitialized
(int index) Is tab initializeboolean
Is Transaction Windowvoid
Wait until asynchronous loading of all tab is complete.void
query()
Open and query first Tab (events should be enabled) and navigate to first row.toString()
To String
-
Constructor Details
-
GridWindow
Constructor- Parameters:
vo
- value object
-
GridWindow
Constructor- Parameters:
vo
- value objectvirtual
- true to use virtual buffer
-
-
Method Details
-
get
Get Grid Window- Parameters:
ctx
- contextWindowNo
- window no for ctxAD_Window_ID
- window id- Returns:
- window or null if not found
-
get
Get Grid Window- Parameters:
ctx
- contextWindowNo
- window no for ctxAD_Window_ID
- window idvirtual
-- Returns:
- window or null if not found
-
dispose
public void dispose()Dispose -
loadCompete
public void loadCompete()Wait until asynchronous loading of all tab is complete. -
isTabInitialized
public boolean isTabInitialized(int index) Is tab initialize- Parameters:
index
- tab index- Returns:
- true if tab at index have been initialized
-
initTab
public void initTab(int index) Initialize tab- Parameters:
index
- tab index
-
getImage
Get Window Icon- Returns:
- Icon for Window
-
getMImage
- Returns:
- MImage
-
getIcon
Get Window Icon- Returns:
- Icon for Window
-
getColor
Get Color- Returns:
- MColor or null
-
isSOTrx
public boolean isSOTrx()- Returns:
- true if window is for SO Trx
-
query
public void query()Open and query first Tab (events should be enabled) and navigate to first row. -
getTabCount
public int getTabCount()Get number of Tabs- Returns:
- number of tabs
-
getTab
- Parameters:
i
- tab index- Returns:
- GridTab at tab index or null if tab index is invalid
-
getTabIndex
- Parameters:
tab
-- Returns:
- tab index
-
getAD_Window_ID
public int getAD_Window_ID()Get Window_ID- Returns:
- AD_Window_ID
-
getWindowNo
public int getWindowNo()Get WindowNo- Returns:
- WindowNo
-
getName
Get Name- Returns:
- name
-
getDescription
Get Description- Returns:
- Description
-
getHelp
Get Help- Returns:
- Help
-
getWindowType
Get Window Type- Returns:
- Window Type see WindowType_*
-
getEntityType
Get EntityType- Returns:
- Window Entity Type
-
isTransaction
public boolean isTransaction()Is Transaction Window- Returns:
- true if this is transaction window
-
getWindowSize
Get Window Size- Returns:
- window size or null if not set
-
toString
To String -
getHelpDoc
Get Help HTML Document- Parameters:
javaClient
- true if java client, false for browser- Returns:
- help document
-
getModelUpdated
Get Model last Updated- Parameters:
recalc
- true to always re-query from DB- Returns:
- last updated timestamp
-
getAD_Window_UU
- Returns:
- AD_Window_UU
-
getGridTab
GetGridTab
by Tab ID- Parameters:
ad_tab_id
-- Returns:
GridTab
-
getGridTab
GetGridTab
by Tab UUID- Parameters:
ad_tab_uu
-- Returns:
GridTab
-