Class ibm.aglets.util.GeneralDialog
All Packages Class Hierarchy This Package Previous Next Index
Class ibm.aglets.util.GeneralDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----ibm.aglets.util.GeneralDialog
- public class GeneralDialog
- extends Dialog
The GeneralDialog class is a common and generic dialog to display
the messages
-
ALWAYS_CENTER
-
-
APPLY
-
-
CANCEL
-
-
CENTER_ONLY_ONCE
-
-
FREE
-
-
HELP
-
-
OKAY
-
-
GeneralDialog(Frame, Component, String, Object, boolean)
-
-
addButton(Button)
- Adds extra button you like.
-
addCmp(Component, GridBagLayout, GridBagConstraints)
-
-
beep()
- Rings a bell.
-
getButton(int)
- Obtains dialog button
-
getTitleLabel()
-
-
handleEvent(Event)
- Handles the events.
-
layoutComponents()
-
-
makePanel(GridBagLayout)
-
-
onApply()
-
-
onCancel()
-
-
onHelp()
-
-
onOkay()
-
-
pack()
-
-
popup(Frame)
- Pops up the dialog window so that it get located at the center
of the frame.
-
popup(int)
- Pops up the dialog window according to the location given as a parameter
-
postCallbackEvent(Event)
-
-
setButtons(int)
- Specifies which buttons should be appeared on the bottom of
window.
-
setCallbackComponent(Component)
-
-
waitForDisplay()
- Waits until the dialog window is actually shown.
-
waitForDisposal()
- Waits until the dialog window is disposed.
OKAY
public final static int OKAY
CANCEL
public final static int CANCEL
APPLY
public final static int APPLY
HELP
public final static int HELP
ALWAYS_CENTER
public final static int ALWAYS_CENTER
CENTER_ONLY_ONCE
public final static int CENTER_ONLY_ONCE
FREE
public final static int FREE
GeneralDialog
public GeneralDialog(Frame parent,
Component callback_component,
String title,
Object object,
boolean modal)
setCallbackComponent
protected void setCallbackComponent(Component c)
postCallbackEvent
protected void postCallbackEvent(Event ev)
layoutComponents
protected final void layoutComponents()
getTitleLabel
public Label getTitleLabel()
makePanel
protected abstract void makePanel(GridBagLayout grid)
addCmp
protected void addCmp(Component c,
GridBagLayout grid,
GridBagConstraints cns)
popup
public void popup(Frame frame)
- Pops up the dialog window so that it get located at the center
of the frame. If frame is null, parent frame will be used.
popup
public void popup(int location)
- Pops up the dialog window according to the location given as a parameter
handleEvent
public boolean handleEvent(Event event)
- Handles the events.
- Overrides:
- handleEvent in class Component
onOkay
protected boolean onOkay()
onCancel
protected boolean onCancel()
onHelp
protected boolean onHelp()
onApply
protected boolean onApply()
waitForDisposal
public void waitForDisposal() throws InterruptedException
- Waits until the dialog window is disposed.
waitForDisplay
public void waitForDisplay() throws InterruptedException
- Waits until the dialog window is actually shown.
beep
public void beep()
- Rings a bell. This is a tentative method and this should
move to more common class for aglets.
setButtons
public void setButtons(int b)
- Specifies which buttons should be appeared on the bottom of
window.
- Parameters:
- b - logical OR value of constants,
OKAY, CANCEL, HELP, APPLY.
addButton
public void addButton(Button b)
- Adds extra button you like.
- Parameters:
- b - the button to get added.
pack
public void pack()
- Overrides:
- pack in class Window
getButton
public Button getButton(int b)
- Obtains dialog button
All Packages Class Hierarchy This Package Previous Next Index