public class PPanel extends Object implements CloseWindow, Runnable, VetoableChangeListener
The panel is physically created and all GUI events are processed. Update transactions from the server is also handled here. Control events may result in a Client Updated transaction to the server.
Modifier and Type | Field and Description |
---|---|
protected boolean |
isApplicationPanel
This flag is true if this is the application panel (MDI frame).
|
protected boolean |
isMainPanel
This flag indicates the panel is a main panel.
|
protected Container |
panelFrame
The frame component of this panel.
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyPressedListener(KeyPressedListener listener)
Adds a listener for pressed keys.
|
void |
copyPanel(boolean asImage)
Copies the entire panel to the clipboard, optionally as an image.
|
int |
getAverageCharWidth()
Gets the average font width for the panel in the panel font.
|
JPanel |
getBarContainer()
Gets the bar container panel.
|
Container |
getContainer()
Gets the panel area container.
|
PControl |
getControl(Component c)
Gets the control in the panel from a Component.
|
PControl |
getControl(int index)
Gets the control of a certain index in the panel.
|
PControl |
getControl(String controlID)
Gets the control of the specified "controlID".
|
int |
getControlCount()
Gets the control count.
|
int |
getControlIndex(Component c)
Gets the control index in the panel from a Component.
|
int |
getFontHeight()
Get font height.
|
Container |
getFrame()
Gets the frame window of the panel.
|
int |
getHeight()
The height of this panel.
|
ArrayList<ImageIcon> |
getIcons()
Get the defined icon images for this panel.
|
PMenu |
getMenu()
Gets the menu bar instance.
|
Component |
getMostRecentFocusOwner()
Gets the most recent focus component for a JInternalFrame or a JDialog,
only for JDK 1.4 (null is returned for other platforms).
|
static PPanel |
getPanelFromComponent(Component c)
Gets a panel from a component.
|
String |
getPanelID()
Gets the panel ID assigned to this panel, valid also for notebook pages.
|
int |
getPanelIndex()
Gets the panel index (0=main panel, 1=first pop-up,...).
|
Phantom |
getPhantomApplet()
Gets the reference to the Phantom instance (applet).
|
SessionManager.Session |
getSession()
Gets the panel session of this panel.
|
SessionManager |
getSessionManager()
Gets the session manager reference.
|
int |
getWidth()
The width of this panel.
|
boolean |
hasIDs()
Checks if the panel uses ID's for control and the panel itself.
|
boolean |
isApplicationPanel()
Access is panel an application panel.
|
boolean |
isChild()
Checks if this panel is a child window inside an
application panel.
|
boolean |
isCreateInProgress()
Checks if the create process is in progress.
|
boolean |
isDisposeInProgress()
Is dispose in progress flag.
|
boolean |
isEnabled()
Checks if this panel is enabled.
|
boolean |
isMainPanel()
Checks if this panel is of main panel type.
|
boolean |
isNoteBookPage()
Checks if the panel is a notebook page.
|
boolean |
isPanelLocked()
Checks if a panel is locked.
|
boolean |
issueActionEvent(AEvent ae)
Issue action event to server.
|
void |
issueUpdate(AEvent ae,
Transaction trans)
Issue update for all controls (NoteBook will result in recursive call).
|
void |
onCloseWindow()
Closes the frame or the internal frame.
|
void |
removeKeyPressedListener(KeyPressedListener listener)
Removes a listener for pressed keys.
|
boolean |
requestDefaultFocus()
Requests the default focus.
|
boolean |
resetDefaultFocus()
Reset to default focus.
|
void |
run()
Method to send changes of current selection to the server.
|
void |
setDocked()
Flags panel as docked.
|
void |
setEnabled(boolean b)
Changes the enabled state for this panel.
|
void |
setPanelLock(boolean lock)
Sets the panel lock.
|
void |
vetoableChange(PropertyChangeEvent e)
Checks for maximize property being set on pop-up panels that can't be maximized.
|
protected boolean isMainPanel
protected boolean isApplicationPanel
protected Container panelFrame
public boolean hasIDs()
public String getPanelID()
public SessionManager getSessionManager()
public Phantom getPhantomApplet()
public SessionManager.Session getSession()
public int getPanelIndex()
public boolean isApplicationPanel()
public boolean isDisposeInProgress()
public boolean isCreateInProgress()
true
if the create process is in progress, false
otherwise.public boolean resetDefaultFocus()
public Component getMostRecentFocusOwner()
public boolean requestDefaultFocus()
grabFocus
.public boolean isEnabled()
public void setEnabled(boolean b)
public boolean isPanelLocked()
public void setPanelLock(boolean lock)
public static PPanel getPanelFromComponent(Component c)
public boolean isChild()
public boolean isNoteBookPage()
public PMenu getMenu()
public boolean isMainPanel()
public Container getFrame()
If the call is done to the notebook container, the frame of the notebook is returned.
public ArrayList<ImageIcon> getIcons()
public Container getContainer()
public JPanel getBarContainer()
public int getControlCount()
public PControl getControl(int index)
public PControl getControl(String controlID)
public PControl getControl(Component c)
public int getControlIndex(Component c)
public boolean issueActionEvent(AEvent ae)
public void issueUpdate(AEvent ae, Transaction trans)
public void addKeyPressedListener(KeyPressedListener listener)
public void removeKeyPressedListener(KeyPressedListener listener)
public int getAverageCharWidth()
public int getFontHeight()
public void onCloseWindow()
onCloseWindow
in interface CloseWindow
public void run()
public int getWidth()
public int getHeight()
public void vetoableChange(PropertyChangeEvent e) throws PropertyVetoException
vetoableChange
in interface VetoableChangeListener
PropertyVetoException
public void setDocked()
public void copyPanel(boolean asImage)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.