|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--HWPanel
|
+--harmonic.mz.gui.Monolog
The monolog is a JPanel with some special abilities. It is indented to be an assemlage of widgets in a dialog box. A Monolog can float or be inside another Monolog. This class will not automatically format its contents. For automatic formating use a class like AutoMonolog, or manually format override format(). A monolog may be embeded in another, since unlike a JDialog this is not by nature a floating frame. A frame is build around a Monolog by the post() function.
| Nested Class Summary | |
static class |
Monolog.MonoFrame
|
| Field Summary | |
boolean |
bPermanent
|
static int |
CLOSED
|
Module |
creatingModule
Module that created this. |
static int |
DOCK_MONOLOG
|
static int |
FLOAT_MONOLOG
|
int |
postMethod
|
static int |
stdDialogWidth
|
BooleanField |
visibility
|
| Constructor Summary | |
Monolog(FunctionStarter action)
Constructs a Monolog. |
|
Monolog(java.lang.String name)
Constructs a Monolog. |
|
| Method Summary | |
void |
addListener(java.lang.Object o,
java.lang.String callback,
int id)
|
void |
addSubMonolog(Monolog mono)
Add a logical sub window that is in an independant frame. |
void |
afterPost()
Called after dialog is posted. |
void |
begin()
Does MZ.tasks().addRootTask(this). |
void |
beginTask(harmonic.viewer3D.Task parentTask)
Implements Task by calling init(), then post(). |
void |
cancel()
Override to respond do canceling |
void |
cancelTask()
Implements Task by calling unpost() |
void |
cleanTask()
|
void |
destroyIfTemporary()
Calls purgeFinal() if this dialog is not flaged as permanent. |
boolean |
drop(java.awt.Component wnd)
|
void |
finish()
Override to finish |
void |
finishTask()
Implements Task by calling unpost() |
static java.awt.Dimension |
frameSize(java.awt.Dimension rect)
Return the frame size for the given content rectangle |
java.awt.Component |
getFrame()
Return the frame this has been floated in, or null if this dialog is not floated. |
java.awt.Dimension |
getPreferredSize()
|
java.lang.String |
getTaskName()
Implements Task |
void |
init_Bottom(int i)
Initialize this to appear in the i'th panel of bottom side tray. |
void |
init_Floating(int x,
int y,
int w,
int h)
Initialize this to come up floating, with given frame rectangle. |
void |
init_Info(int postType,
java.awt.Rectangle rect)
Intialize this to come up as given. |
void |
init_Left(int i)
Initialize this to appear in the i'th panel of left side tray. |
void |
init_Right(int i)
Initialize this to appear in the i'th panel of right side tray. |
void |
init_Top(int i)
Initialize this to appear in the i'th panel of top side tray. |
void |
init()
Override to initialize. |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
nodeChanged(NodeEvent e)
Node has changed |
void |
noPost()
|
void |
onCancel()
|
void |
onDismiss()
|
void |
onHelp()
|
void |
onOK()
|
void |
post()
Post the dialog a position specified by the initX functions. |
void |
post(FunctionStarter fn)
This a convience for assigning the user function what created this monolog. |
void |
post(int postType,
int x,
int y)
Call this one if only the location is known, and this size will be figured |
void |
post(int postType,
int x,
int y,
int w,
int h)
Post the monolog |
void |
postModal()
Post modally. |
void |
postModal(FunctionStarter fn)
Post modally. |
void |
processKeyEvent(java.awt.event.KeyEvent e)
|
void |
reformat()
|
void |
removeStandardButtons()
Remove any comonents extending StandardButtonPanel. |
void |
setFunction(FunctionStarter fn)
Set the FunctionStarter that starts this dialog, if there is one. |
void |
setMonologClass(java.lang.String type)
Set the type of dialog this should be considered. |
void |
setPermenant(boolean b)
|
void |
setPosted(boolean b)
|
void |
setResizeable(boolean b)
Set whether user can resize the frame. |
void |
setTitle(java.lang.String s)
Set frame title of this Monolog. |
boolean |
shouldPost()
|
void |
unpost()
this.unpost(false) |
void |
unpost(boolean bReuseFrame)
Visually remove dialog. |
void |
updateMonologInfo()
Set the current state of this Monolog to the info table |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static int stdDialogWidth
public BooleanField visibility
public Module creatingModule
public boolean bPermanent
public int postMethod
public static final int FLOAT_MONOLOG
public static final int DOCK_MONOLOG
public static final int CLOSED
| Constructor Detail |
public Monolog(java.lang.String name)
public Monolog(FunctionStarter action)
| Method Detail |
public java.awt.Component getFrame()
public void setMonologClass(java.lang.String type)
public void updateMonologInfo()
public void init_Info(int postType,
java.awt.Rectangle rect)
postType - Way dialog is shownrect - Frame rectangle if floated
public void init_Floating(int x,
int y,
int w,
int h)
public void init_Left(int i)
public void init_Right(int i)
public void init_Top(int i)
public void init_Bottom(int i)
public void nodeChanged(NodeEvent e)
NodeListener
nodeChanged in interface NodeListenerpublic void setTitle(java.lang.String s)
public void setResizeable(boolean b)
public void removeStandardButtons()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListener
public void addListener(java.lang.Object o,
java.lang.String callback,
int id)
public java.awt.Dimension getPreferredSize()
public void processKeyEvent(java.awt.event.KeyEvent e)
public void reformat()
public void addSubMonolog(Monolog mono)
public static java.awt.Dimension frameSize(java.awt.Dimension rect)
public void setPermenant(boolean b)
public void setPosted(boolean b)
public void setFunction(FunctionStarter fn)
public boolean drop(java.awt.Component wnd)
public boolean shouldPost()
public void postModal()
someuserfn(){
dialog.post();
respond_to_dialog();
}
public void postModal(FunctionStarter fn)
public void post(FunctionStarter fn)
public void post()
public void post(int postType,
int x,
int y)
public void post(int postType,
int x,
int y,
int w,
int h)
x - x positiony - y positionw - widthh - heightpublic void unpost()
public void unpost(boolean bReuseFrame)
public void begin()
public void beginTask(harmonic.viewer3D.Task parentTask)
beginTask in interface harmonic.viewer3D.Taskpublic void finishTask()
finishTask in interface harmonic.viewer3D.Taskpublic void cancelTask()
cancelTask in interface harmonic.viewer3D.Taskpublic void cleanTask()
cleanTask in interface harmonic.viewer3D.Taskpublic java.lang.String getTaskName()
getTaskName in interface harmonic.viewer3D.Taskpublic void init()
public void afterPost()
public void noPost()
public void finish()
public void cancel()
public void destroyIfTemporary()
public void onOK()
public void onCancel()
public void onDismiss()
public void onHelp()
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||