|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.model.ui.AbstractPresentationModel
com.guiseframework.component.AbstractComponent
com.guiseframework.component.AbstractCompositeComponent
com.guiseframework.component.AbstractMultipleCompositeComponent
com.guiseframework.component.AbstractArrayCompositeComponent
com.guiseframework.component.AbstractEnumCompositeComponent<AbstractFrame.FrameComponent>
com.guiseframework.component.AbstractFrame
com.guiseframework.component.AbstractDialogFrame<O>
com.guiseframework.component.AbstractOptionDialogFrame<Notification.Option>
com.guiseframework.component.NotificationOptionDialogFrame
public class NotificationOptionDialogFrame
Default implementation of a frame for communication of an option such as "OK" or "Cancel".
An option frame defaults to a single composite child panel with a row of options along the bottom.
The contents of an option dialog frame should be accessed by AbstractOptionDialogFrame.getOptionContent() and AbstractOptionDialogFrame.setOptionContent(Component).
This class binds the command ProcessCommand.CONTINUE to the button for the first non-fatal option.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractFrame |
|---|
AbstractFrame.DefaultPrototypeProvider, AbstractFrame.FrameComponent |
| Nested classes/interfaces inherited from class com.guiseframework.component.AbstractComponent |
|---|
AbstractComponent.AbstractFlyoverFrameStrategy<S extends Component>, AbstractComponent.AbstractFlyoverStrategy<S extends Component>, AbstractComponent.DefaultFlyoverStrategy<S extends Component> |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Frame |
|---|
Frame.Mode, Frame.State |
| Nested classes/interfaces inherited from interface com.guiseframework.component.Control |
|---|
Control.Status |
| Field Summary |
|---|
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Fields inherited from interface com.guiseframework.component.Frame |
|---|
CLOSE_ACTION_CONTROL_PROPERTY, MENU_PROPERTY, MODAL_PROPERTY, MOVABLE_PROPERTY, OPEN_EFFECT_PROPERTY, RELATED_COMPONENT_PROPERTY, RESIZABLE_PROPERTY, STATE_PROPERTY, TITLE_BACKGROUND_COLOR_PROPERTY, TITLE_VISIBLE_PROPERTY, TOOLBAR_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ContentComponent |
|---|
CONTENT_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ModalComponent |
|---|
MODE_PROPERTY |
| Fields inherited from interface com.guiseframework.component.InputFocusGroupComponent |
|---|
INPUT_FOCUS_STRATEGY_PROPERTY, INPUT_FOCUSED_COMPONENT_PROPERTY |
| Fields inherited from interface com.guiseframework.component.ValueControl |
|---|
CONVERTER_PROPERTY |
| Fields inherited from interface com.guiseframework.component.Control |
|---|
STATUS_PROPERTY |
| Fields inherited from interface com.guiseframework.model.Enableable |
|---|
ENABLED_PROPERTY |
| Fields inherited from interface com.guiseframework.model.ValueModel |
|---|
VALIDATOR_PROPERTY, VALUE_PROPERTY |
| Constructor Summary | |
|---|---|
NotificationOptionDialogFrame(Component component,
Notification.Option... options)
Component and options constructor. |
|
NotificationOptionDialogFrame(Notification.Option... options)
Options constructor. |
|
NotificationOptionDialogFrame(Notification notification)
Notification constructor. |
|
NotificationOptionDialogFrame(java.lang.String text,
com.globalmentor.net.ContentType textContentType,
Notification.Option... options)
Text and content type constructor Duplicate options are ignored. |
|
NotificationOptionDialogFrame(java.lang.String text,
Notification.Option... options)
Text constructor with a default Model.PLAIN_TEXT_CONTENT_TYPE content type. |
|
NotificationOptionDialogFrame(ValueModel<Notification.Option> valueModel,
Component component,
Notification.Option... options)
Value model, component, and options constructor. |
|
NotificationOptionDialogFrame(ValueModel<Notification.Option> valueModel,
Notification.Option... options)
Value model, and options constructor. |
|
| Method Summary | |
|---|---|
protected Component |
createOptionComponent(Notification.Option option)
Creates a component to represent the given option. |
void |
open(java.lang.Runnable afterNotify)
Opens the frame as modal with a Runnable to be performed after modality ends successfully. |
| Methods inherited from class com.guiseframework.component.AbstractOptionDialogFrame |
|---|
createOptionContainer, getContentContainer, getOptionComponent, getOptionContainer, getOptionContent, getOptions, initializeOptionContainer, setContent, setOptionContent |
| Methods inherited from class com.guiseframework.component.AbstractDialogFrame |
|---|
clearValue, determineStatus, determineValid, firePropertyChange, getDefaultValue, getStatus, getValidator, getValue, getValueClass, getValueModel, isEnabled, isValidValue, reset, resetValue, setEnabled, setNotification, setStatus, setValidator, setValue, updateStatus, updateValid, validate, validateValue |
| Methods inherited from class com.guiseframework.component.AbstractEnumCompositeComponent |
|---|
getComponent, setComponent |
| Methods inherited from class com.guiseframework.component.AbstractArrayCompositeComponent |
|---|
getChildComponents, getChildList, getComponent, hasChildComponents, setComponent |
| Methods inherited from class com.guiseframework.component.AbstractMultipleCompositeComponent |
|---|
addComponent, removeComponent |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.Frame |
|---|
canClose, close, getCloseActionControl, getCloseActionPrototype, getMenu, getOpenEffect, getRelatedComponent, getState, getTitleBackgroundColor, getToolbar, isModal, isMovable, isResizable, isTitleVisible, open, open, open, setCloseActionControl, setMenu, setModal, setMovable, setOpenEffect, setRelatedComponent, setResizable, setTitleBackgroundColor, setTitleVisible, setToolbar |
| Methods inherited from interface com.guiseframework.component.ContentComponent |
|---|
getContent |
| Methods inherited from interface com.guiseframework.component.CompositeComponent |
|---|
addCompositeComponentListener, getChildComponents, hasChildComponents, removeCompositeComponentListener |
| Methods inherited from interface com.guiseframework.component.ModalComponent |
|---|
getMode, setMode |
| Methods inherited from interface com.guiseframework.component.InputFocusGroupComponent |
|---|
getInputFocusedComponent, getInputFocusStrategy, setInputFocusedComponent, setInputFocusStrategy |
| Methods inherited from interface com.guiseframework.component.Control |
|---|
getStatus, reset |
| Methods inherited from interface com.guiseframework.model.Enableable |
|---|
isEnabled, setEnabled |
| Methods inherited from interface com.guiseframework.model.ValueModel |
|---|
clearValue, getDefaultValue, getValidator, getValue, getValueClass, isValidValue, resetValue, setValidator, setValue, validateValue |
| Methods inherited from interface com.guiseframework.component.ValuedComponent |
|---|
getValue, getValueClass, setValue |
| Constructor Detail |
|---|
public NotificationOptionDialogFrame(Notification.Option... options)
options - The available options.
java.lang.NullPointerException - if the given options is null.public NotificationOptionDialogFrame(Notification notification)
notification - The notification that specifies the message and options.
java.lang.NullPointerException - if the given notification is null.
#see TextBox
public NotificationOptionDialogFrame(java.lang.String text,
Notification.Option... options)
Model.PLAIN_TEXT_CONTENT_TYPE content type.
Duplicate options are ignored.
text - The text, which may include a resource reference, or null if there is no text.options - The available options.
java.lang.NullPointerException - if the given options is null.
#see TextBox
public NotificationOptionDialogFrame(java.lang.String text,
com.globalmentor.net.ContentType textContentType,
Notification.Option... options)
text - The text, which may include a resource reference, or null if there is no text.textContentType - The content type of the text.options - The available options.
java.lang.NullPointerException - if the given content type and/or options is null.
java.lang.IllegalArgumentException - if the given content type is not a text content type.
#see TextBox
public NotificationOptionDialogFrame(Component component,
Notification.Option... options)
component - The single child component, or null if this frame should have no child component.options - The available options.
java.lang.NullPointerException - if the given options is null.
public NotificationOptionDialogFrame(ValueModel<Notification.Option> valueModel,
Notification.Option... options)
valueModel - The frame value model.options - The available options.
java.lang.NullPointerException - if the given value model and or options is null.
public NotificationOptionDialogFrame(ValueModel<Notification.Option> valueModel,
Component component,
Notification.Option... options)
valueModel - The frame value model.component - The component representing the content of the option dialog frame, or null if there is no content component.options - The available options.
java.lang.NullPointerException - if the given value model and/or options is null.| Method Detail |
|---|
public void open(java.lang.Runnable afterNotify)
Runnable to be performed after modality ends successfully.
When the frame closes, if a non-fatal option was chosen the given runnable is executed.
This is a convenience method that delegates to Frame.open(com.globalmentor.beans.GenericPropertyChangeListener).
If the selected option to any notification is fatal, the specified logic, if any, will not be performed.
The absence of an option selection is considered fatal only if a fatal option was presented for a given notification.
afterNotify - The code that executes after notification has taken place, or null if no action should be taken after notification.Frame.open(com.globalmentor.beans.GenericPropertyChangeListener),
Option#isFatal()protected Component createOptionComponent(Notification.Option option)
createOptionComponent in class AbstractOptionDialogFrame<Notification.Option>option - The option for which a component should be created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||