|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.compiere.swing.CPanel
org.compiere.apps.APanel
public final class APanel
Main Panel of application window.
Structure:
(MenuBar) -> to be added to owning window
northPanel (ToolBar)
tabPanel
southPanel (StatusBar)
[ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
AppsAction |
aIgnore
Ignore Button |
AppsAction |
aLock
Private Lock Button |
AppsAction |
aSave
Save Button |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
APanel(AWindow window)
|
|
APanel(GridController gc,
int windowNo)
Constructs a new instance. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Action Listener |
boolean |
cmd_save(boolean manualCmd)
If required ask if you want to save and save it |
void |
dataStatusChanged(DataStatusEvent e)
Data Status Listener (row change) ^ | v |
void |
dispose()
Dispose |
void |
executeASync(ProcessInfo pi)
Method to be executed async. |
GridTab |
getCurrentTab()
Get Current Tab |
Image |
getImage()
Get Window Image |
JMenuBar |
getMenuBar()
Return MenuBar |
int |
getSelectedTabIndex()
Get the selected tab index of the panels JTabbedPane. |
String |
getSelectedTabName()
Get the name of the selected tab in the panels JTabbedPane. |
String |
getTitle()
Get Title of Window |
int |
getWindowNo()
Get Current Window No |
boolean |
initPanel(int AD_Workbench_ID,
int AD_Window_ID,
MQuery query)
Dynamic Panel Initialization - either single window or workbench. |
boolean |
isNested()
|
boolean |
isUILocked()
Is the UI locked (Internal method) |
void |
lockUI(ProcessInfo pi)
Lock User Interface. |
int |
noOfTabs()
Get the number of tabs in the panels JTabbedPane. |
void |
setSelectedTabIndex(int index)
Set the tab index of the panels JTabbedPane. |
void |
setStatusLine(String text,
boolean error)
Set Status Line to text |
void |
stateChanged(ChangeEvent e)
Change Listener - (tab change) <-> |
String |
toString()
String representation |
void |
unlockUI(ProcessInfo pi)
Unlock User Interface. |
| Methods inherited from class org.compiere.swing.CPanel |
|---|
getBackgroundColor, getTabLevel, setBackground, setBackgroundColor, setTabLevel |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public AppsAction aIgnore
public AppsAction aSave
public AppsAction aLock
| Constructor Detail |
|---|
public APanel(GridController gc,
int windowNo)
public APanel(AWindow window)
| Method Detail |
|---|
public void dispose()
public JMenuBar getMenuBar()
public String getTitle()
public boolean initPanel(int AD_Workbench_ID,
int AD_Window_ID,
MQuery query)
either
- Workbench tabPanel (VTabbedPane)
- Tab (GridController)
or
- Workbench tabPanel (VTabbedPane)
- Window (VTabbedPane)
- Tab (GridController)
tabPanel
AD_Workbench_ID - if > 0 this is a workbench, AD_Window_ID ignoredAD_Window_ID - if not a workbench, Window IDquery - if not a Workbench, Zoom Query - additional SQL where clause
public int getWindowNo()
public Image getImage()
public void dataStatusChanged(DataStatusEvent e)
dataStatusChanged in interface DataStatusListenere - event
public void setStatusLine(String text,
boolean error)
text - clear texterror - error flagpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenere - eventpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - eventpublic boolean cmd_save(boolean manualCmd)
manualCmd - true if invoked manually (i.e. force)
public void lockUI(ProcessInfo pi)
lockUI in interface ASyncProcesspi - process infopublic void unlockUI(ProcessInfo pi)
unlockUI in interface ASyncProcesspi - of execute ASync callpublic boolean isUILocked()
isUILocked in interface ASyncProcesspublic void executeASync(ProcessInfo pi)
executeASync in interface ASyncProcesspi - process infopublic GridTab getCurrentTab()
public int noOfTabs()
public int getSelectedTabIndex()
public void setSelectedTabIndex(int index)
public String getSelectedTabName()
public String toString()
toString in class CPanelpublic boolean isNested()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||