|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Frame
A root-level component such as a window or an HTML page.
The frame's contents are specified using ContentComponent.setContent(Component).
The title is specified by the frame model's label.
A frame like other components is by default visible, but is not actually shown until its open(boolean) method is called.
A frame is a InputFocusGroupComponent, allowing descendant InputFocusableComponents to have the focus.
| Nested Class Summary | |
|---|---|
static class |
Frame.Mode
The mode of this component; whether the frame is in exclusive interaction with the user. |
static class |
Frame.State
The state of the frame. |
| Field Summary | |
|---|---|
static java.lang.String |
CLOSE_ACTION_CONTROL_PROPERTY
The close action control bound property. |
static java.lang.String |
MENU_PROPERTY
The bound property of the frame menu. |
static java.lang.String |
MODAL_PROPERTY
The bound property of whether the frame is modal if and when it is open. |
static java.lang.String |
MOVABLE_PROPERTY
The bound property of whether the component is movable. |
static java.lang.String |
OPEN_EFFECT_PROPERTY
The open effect bound property. |
static java.lang.String |
RELATED_COMPONENT_PROPERTY
The bound property of the related component. |
static java.lang.String |
RESIZABLE_PROPERTY
The bound property of whether the frame can be resized. |
static java.lang.String |
STATE_PROPERTY
The bound state property. |
static java.lang.String |
TITLE_BACKGROUND_COLOR_PROPERTY
The bound property of the title background color. |
static java.lang.String |
TITLE_VISIBLE_PROPERTY
The bound property of whether the title bar is visible. |
static java.lang.String |
TOOLBAR_PROPERTY
The bound property of the frame toolbar. |
| 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 |
| Method Summary | |
|---|---|
boolean |
canClose()
Determines whether the frame should be allowed to close. |
void |
close()
Closes the frame. |
ActionControl |
getCloseActionControl()
|
ActionPrototype |
getCloseActionPrototype()
|
Menu |
getMenu()
|
Effect |
getOpenEffect()
|
Component |
getRelatedComponent()
|
Frame.State |
getState()
|
Color |
getTitleBackgroundColor()
|
Toolbar |
getToolbar()
|
boolean |
isModal()
|
boolean |
isMovable()
|
boolean |
isResizable()
|
boolean |
isTitleVisible()
|
void |
open()
Opens the frame with the currently set modality. |
void |
open(boolean modal)
Opens the frame, specifying modality. |
void |
open(com.globalmentor.beans.GenericPropertyChangeListener<Frame.Mode> modeChangeListener)
Opens the frame as modal and installs the given property change listener to listen for the mode changing. |
void |
setCloseActionControl(ActionControl newCloseActionControl)
Sets the action control for closing the frame. |
void |
setMenu(Menu newMenu)
Sets the frame menu. |
void |
setModal(boolean newModal)
Sets whether the frame is modal if and when it is open. |
void |
setMovable(boolean newMovable)
Sets whether the frame is movable. |
void |
setOpenEffect(Effect newOpenEffect)
Sets the effect used for opening the frame. |
void |
setRelatedComponent(Component newRelatedComponent)
Sets the related component This is a bound property. |
void |
setResizable(boolean newResizable)
Sets whether the frame can be resized. |
void |
setTitleBackgroundColor(Color newTitleBackgroundColor)
Sets the background color of the title. |
void |
setTitleVisible(boolean newTitleVisible)
Sets whether the title bar is visible. |
void |
setToolbar(Toolbar newToolbar)
Sets the frame toolbar. |
| Methods inherited from interface com.guiseframework.component.ContentComponent |
|---|
getContent, setContent |
| 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 |
| Field Detail |
|---|
static final java.lang.String CLOSE_ACTION_CONTROL_PROPERTY
static final java.lang.String MENU_PROPERTY
static final java.lang.String MODAL_PROPERTY
static final java.lang.String MOVABLE_PROPERTY
static final java.lang.String OPEN_EFFECT_PROPERTY
static final java.lang.String RELATED_COMPONENT_PROPERTY
static final java.lang.String RESIZABLE_PROPERTY
static final java.lang.String STATE_PROPERTY
static final java.lang.String TITLE_BACKGROUND_COLOR_PROPERTY
static final java.lang.String TITLE_VISIBLE_PROPERTY
static final java.lang.String TOOLBAR_PROPERTY
| Method Detail |
|---|
Frame.State getState()
Menu getMenu()
null if this frame does not have a menu.void setMenu(Menu newMenu)
newMenu - The frame menu, or null if this frame does not have a menu.MENU_PROPERTYboolean isModal()
void setModal(boolean newModal)
Boolean.
newModal - true if the frame should be modal, else false.MODAL_PROPERTYboolean isMovable()
void setMovable(boolean newMovable)
Boolean.
newMovable - true if the frame should be movable, else false.MOVABLE_PROPERTYboolean isResizable()
void setResizable(boolean newResizable)
Boolean.
newResizable - true if the frame can be resized, else false.RESIZABLE_PROPERTYComponent getRelatedComponent()
null if the frame is not related to another component.void setRelatedComponent(Component newRelatedComponent)
newRelatedComponent - The new related component, or null if the frame is not related to another component.RELATED_COMPONENT_PROPERTYColor getTitleBackgroundColor()
null if no background color is specified for the title.void setTitleBackgroundColor(Color newTitleBackgroundColor)
newTitleBackgroundColor - The background color of the title, or null if the default background color should be used.TITLE_BACKGROUND_COLOR_PROPERTYboolean isTitleVisible()
void setTitleVisible(boolean newTitleVisible)
Boolean.
newTitleVisible - true if the title bar should be visible, else false.TITLE_VISIBLE_PROPERTYToolbar getToolbar()
null if this frame does not have a toolbar.void setToolbar(Toolbar newToolbar)
newToolbar - The frame toolbar, or null if this frame does not have a toolbar.TOOLBAR_PROPERTYEffect getOpenEffect()
null if there is no open effect.void setOpenEffect(Effect newOpenEffect)
newEffect - The new effect used for opening the frame, or null if there should be no open effect.OPEN_EFFECT_PROPERTYActionPrototype getCloseActionPrototype()
ActionControl getCloseActionControl()
null if this frame does not have a close action control.void setCloseActionControl(ActionControl newCloseActionControl)
newCloseActionControl - The action control for closing the frame, or null if this frame does not have a close action control.CLOSE_ACTION_CONTROL_PROPERTYvoid open()
getState(),
STATE_PROPERTYvoid open(com.globalmentor.beans.GenericPropertyChangeListener<Frame.Mode> modeChangeListener)
ModalComponent.MODE_PROPERTY change listener using PropertyBindable.addPropertyChangeListener(String, PropertyChangeListener) and then calls open(boolean) with a value of true.
modeChangeListener - The mode property change listener to add.ModalComponent.MODE_PROPERTYvoid open(boolean modal)
modal - true if the frame should be opened as a modal frame, else false.getState(),
STATE_PROPERTYboolean canClose()
close().
true if the frame should be allowed to close.void close()
getState(),
STATE_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||