|
|||||||||
| 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<O>
O - The type of options available.public abstract class AbstractOptionDialogFrame<O>
Abstract implementation of a frame for communication of an option.
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 getOptionContent() and setOptionContent(Component).
This implementation does not allow its frame content to be changed.
| 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 | |
|---|---|
AbstractOptionDialogFrame(ValueModel<O> valueModel,
Component component,
O... options)
Value model, component, and options constructor. |
|
| Method Summary | |
|---|---|
protected abstract Component |
createOptionComponent(O option)
Creates a component to represent the given option. |
protected Container |
createOptionContainer()
Creates a container for holding the options. |
protected Container |
getContentContainer()
|
Component |
getOptionComponent(O option)
Returns the component that represents the specified option. |
Container |
getOptionContainer()
|
Component |
getOptionContent()
|
java.util.List<O> |
getOptions()
|
protected void |
initializeOptionContainer(Container optionContainer,
java.util.List<O> options)
Initializes the option container with the available options. |
void |
setContent(Component newContent)
Sets the single child component. |
void |
setOptionContent(Component newOptionContent)
Sets the component representing option contents. |
| 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 AbstractOptionDialogFrame(ValueModel<O> valueModel,
Component component,
O... 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 setContent(Component newContent)
setContent in interface ContentComponentsetContent in class AbstractFramenewContent - The single child component, or null if this frame does not have a child component.
java.lang.IllegalArgumentException - if any different content is provided.AbstractFrame.FrameComponent.CONTENT_COMPONENT,
ContentComponent.CONTENT_PROPERTYprotected Container getContentContainer()
public Component getOptionContent()
getOptionContent in interface OptionDialogFrame<O>null if this frame does not have an option contents component.public void setOptionContent(Component newOptionContent)
setOptionContent in interface OptionDialogFrame<O>newOptionContent - The single option contents component, or null if this frame does not have an option contents component.public Container getOptionContainer()
getOptionContainer in interface OptionDialogFrame<O>public java.util.List<O> getOptions()
getOptions in interface OptionDialogFrame<O>public Component getOptionComponent(O option)
getOptionComponent in interface OptionDialogFrame<O>option - The option for which a component should be returned.
null if there is no component that represents the given option.protected Container createOptionContainer()
ArrangePanel
protected void initializeOptionContainer(Container optionContainer,
java.util.List<O> options)
optionContainer - The container to the options.options - The available options.protected abstract Component createOptionComponent(O 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 | ||||||||