|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--sale.JDisplayDialog
A JDialog that can display Form- and MenuSheets.
You can use this frame to pop up messages and dialogs in extra windows, while maintaining consistency with the rest of the GUI by using the familiar FormSheet look'n'feel.
The frame will display one FormSheet
, and, by default, will close when the FormSheet
is closed. Closing the frame using the systems menu or any other OS dependent gesture
will result in a call to FormSheet.cancel()
on the FormSheet.
Also, the frame may display a MenuSheet
. It can therefore be used wherever a Display
can be used.
Attention: This class is not meant to be serialized.
Inner classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Inner classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Inner classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
Field Summary | |
protected EventListenerList |
m_ellListeners
The list of listeners. |
Fields inherited from class javax.swing.JDialog |
accessibleContext,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
JDisplayDialog()
Create a new JDisplayDialog. |
|
JDisplayDialog(JFrame jfOwner)
Create a new JDisplayDialog with the given owner. |
Method Summary | |
void |
addFormSheetListener(FormSheetListener fsl)
Add a listener to receive notification on the JDisplayDialog's FormSheet. |
void |
closeFormSheet()
Close the current FormSheet. |
void |
closeFormSheet(FormSheet fs)
Close a FormSheet. |
void |
dispose()
In addition to disposing of the peer resources, remove the FormSheet and the MenuSheet. |
protected void |
fireFormSheetRemoved(FormSheet fs,
boolean fExplicit)
Fire an event to all FormSheetListeners indicating that a FormSheet was removed from this display. |
protected void |
fireFormSheetSet(FormSheet fs)
Fire an event to all FormSheetListeners indicating that a FormSheet was set on this display. |
protected void |
formSheetClosed()
Hook method called when the FormSheet was closed. |
boolean |
isUseableDisplay()
Return true to indicate this is a useable display. |
static void |
main(String[] args)
JDisplayDialog test suite. |
void |
onFormSheetButtonAdded(FormSheet fs,
FormSheet.FormButton fb)
Notification event informing that a button was added to the FormSheet's button bar. |
void |
onFormSheetButtonRemoved(FormSheet fs,
FormSheet.FormButton fb)
Notification event informing that a button was removed from the FormSheet's button bar. |
void |
onFormSheetButtonsCleared(FormSheet fs)
Notification event informing that all buttons were removed from a FormSheet's button bar. |
void |
onFormSheetCaptionChanged(FormSheet fs,
String sNewCaption)
Notification event informing about a change of a FormSheet's caption. |
void |
onFormSheetComponentChanged(FormSheet fs,
JComponent jcmpNew)
Notification event informing about a change of a FormSheet's component. |
void |
popUpFormSheet(FormSheet fs)
Open a fresh JDisplayDialog and display the FormSheet in it. |
void |
removeFormSheetListener(FormSheetListener fsl)
Remove a listener to receive notification on the JDisplayDialog's FormSheet. |
void |
setFormSheet(FormSheet fs)
Set and display a FormSheet. |
void |
setMenuSheet(MenuSheet ms)
Remove any old MenuSheet and display the new one. |
Methods inherited from class java.awt.Dialog |
addNotify,
getTitle,
hide,
isModal,
isResizable,
setModal,
setResizable,
setTitle,
show |
Methods inherited from class java.awt.Window |
addWindowListener,
applyResourceBundle,
applyResourceBundle,
finalize,
getFocusOwner,
getGraphicsConfiguration,
getInputContext,
getListeners,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isShowing,
pack,
postEvent,
processEvent,
removeWindowListener,
setCursor,
toBack,
toFront |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
validate,
validateTree |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected transient EventListenerList m_ellListeners
Constructor Detail |
public JDisplayDialog()
public JDisplayDialog(JFrame jfOwner)
jfOwner
- the JFrame owning the display dialog.Method Detail |
public void closeFormSheet(FormSheet fs)
If a FormSheet is closed, by default, the JDisplayDialog containing it is also closed. You can,
however, alter this behavior by overriding formSheetClosed()
.
formSheetClosed()
.fs
- the FormSheet to be closed.protected void formSheetClosed()
public void dispose()
public void onFormSheetCaptionChanged(FormSheet fs, String sNewCaption)
fs
- the FormSheet whose caption changed.sNewCaption
- the new caption of the FormSheet.public void onFormSheetComponentChanged(FormSheet fs, JComponent jcmpNew)
fs
- the FormSheet whose component changed.jcmpNew
- the new component of the FormSheet.public void onFormSheetButtonAdded(FormSheet fs, FormSheet.FormButton fb)
fs
- the FormSheet whose button bar changed.fb
- the button that was added to the FormSheet.public void onFormSheetButtonRemoved(FormSheet fs, FormSheet.FormButton fb)
fs
- the FormSheet whose button bar changed.fb
- the button that was removed from the FormSheet.public void onFormSheetButtonsCleared(FormSheet fs)
fs
- the FormSheet whose button bar was cleared.public void setFormSheet(FormSheet fs) throws InterruptedException
If fs.waitResponse() returns true,
setFormSheet()
blocks, until the FormSheet is closed by a matching
call to closeFormSheet(sale.FormSheet)
.
fs
- the FormSheet to be displayed.public void closeFormSheet()
public void popUpFormSheet(FormSheet fs) throws InterruptedException
JDisplayDialog
and display the FormSheet in it.public void setMenuSheet(MenuSheet ms)
ms
- the MenuSheet to be displayed.public boolean isUseableDisplay()
public void addFormSheetListener(FormSheetListener fsl)
public void removeFormSheetListener(FormSheetListener fsl)
protected void fireFormSheetSet(FormSheet fs)
FormSheet
was set on this display. As FormSheet setting is always explicit, no
extra parameter is necessary.fs
- the FormSheet that was setprotected void fireFormSheetRemoved(FormSheet fs, boolean fExplicit)
FormSheet
was removed from this display.fs
- the FormSheet that was setfExplicit
- true, if the FormSheet was closed explicitly, i.e. either by a call to one of
the closeFormSheet
methods or by setFormSheet (null)
.closeFormSheet()
,
closeFormSheet(FormSheet)
,
setFormSheet(sale.FormSheet)
public static void main(String[] args)
|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |