com.guiseframework.component
Interface OptionDialogFrame<O>
- Type Parameters:
O - The type of options available.
- All Superinterfaces:
- Component, CompositeComponent, ContentComponent, Control, DepictedObject, DialogFrame<O>, Displayable, Enableable, Frame, InfoModel, InputFocusableComponent, InputFocusGroupComponent, LabelModel, ModalComponent<Frame.Mode>, Model, PresentationModel, com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, ValueControl<O>, Valued<O>, ValuedComponent<O>, ValueModel<O>
- All Known Implementing Classes:
- AbstractOptionDialogFrame, MessageOptionDialogFrame, NotificationOptionDialogFrame
public interface OptionDialogFrame<O>
- extends DialogFrame<O>
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).
- Author:
- Garret Wilson
| 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 |
| 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 |
getOptionContent
Component getOptionContent()
- Returns:
- The component representing option contents, or
null if this frame does not have an option contents component.
setOptionContent
void setOptionContent(Component newOptionContent)
- Sets the component representing option contents.
- Parameters:
newOptionContent - The single option contents component, or null if this frame does not have an option contents component.
getOptionContainer
Container getOptionContainer()
- Returns:
- The container containing the options.
getOptions
java.util.List<O> getOptions()
- Returns:
- The read-only list of available options in order.
getOptionComponent
Component getOptionComponent(O option)
- Returns the component that represents the specified option.
- Parameters:
option - The option for which a component should be returned.
- Returns:
- The component, such as a button, that represents the given option, or
null if there is no component that represents the given option.
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.