|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.gui.DisplayContext
This class implements a display context.
A display context contains a display (i.e. means to interact with the user and to create new view in customized vindows), and a customized view (i.e a root window of a GUI).
A display context is passed in the interaction's flow so that each element of the GUI can construct the right GUI elements using the contextual factory. It is a defined as a collaboration attribute used by aspects needing to interact with the GUI (e.g. authentication, confirmation).
Collaboration
Constructor Summary | |
DisplayContext(CustomizedDisplay display,
CustomizedView customizedView)
Construct a new display context from a display and a customized. |
|
DisplayContext(CustomizedDisplay display,
Object window)
Construct a new display context from a display and an existing window that can be of any type. |
Method Summary | |
void |
addEditor(Object editor)
Add an editor to the container. |
CustomizedView |
getCustomizedView()
Gets the current customized view. |
CustomizedDisplay |
getDisplay()
Returns the display for this context. |
List |
getEditors()
Get the list of all editors of this container. |
Object |
getWindow()
Gets the window for this display context. |
boolean |
hasEnabledEditor()
Returns true if at least one editor is enabled. |
void |
removeEditor(Object editor)
Remove an editor from the container. |
void |
setCustomizedView(CustomizedView customizedView)
Sets the customized of this display context. |
void |
setShowButtons(boolean value)
Sets the showButtons property of the container. |
void |
setWindow(Object window)
Sets the window for this display context. |
boolean |
showButtons()
Gets the value of showButtons |
String |
toString()
A default string representation of the display context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DisplayContext(CustomizedDisplay display, CustomizedView customizedView)
display
- the displaycustomizedView
- the customizedpublic DisplayContext(CustomizedDisplay display, Object window)
display
- the displaywindow
- a windowMethod Detail |
public CustomizedDisplay getDisplay()
A display is an GUI entity that is used by the program to interact with the GUI users.
public CustomizedView getCustomizedView()
A customized is a root window for a GUI. A GUI may contain several customized.
public void setCustomizedView(CustomizedView customizedView)
customizedView
- the new customizedpublic void setWindow(Object window)
window
- the windowpublic Object getWindow()
public void addEditor(Object editor)
EditorContainer
addEditor
in interface EditorContainer
public void removeEditor(Object editor)
EditorContainer
removeEditor
in interface EditorContainer
public List getEditors()
EditorContainer
getEditors
in interface EditorContainer
public boolean hasEnabledEditor()
EditorContainer
hasEnabledEditor
in interface EditorContainer
public void setShowButtons(boolean value)
EditorContainer
setShowButtons
in interface EditorContainer
public boolean showButtons()
EditorContainer
showButtons
in interface EditorContainer
EditorContainer.setShowButtons(boolean)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |