|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
close(boolean validate)
Close this view. |
DisplayContext |
getContext()
|
String |
getDescription()
Gets the description of this view. |
ViewFactory |
getFactory()
Gets the factory. |
String |
getLabel()
Gets the view's label (identifier). |
MethodItem |
getMessage()
Gets the dynamic message. |
View |
getParentView()
Gets the parent view of this view. |
View |
getRootView()
Gets the ancestor view whose parent is null |
String |
getStyle()
Gets the user-defined style for this view. |
Border |
getViewBorder()
Gets the border for this view. |
boolean |
isClosed()
Tells if this view has been closed by the GUI or the user. |
boolean |
isDescendantOf(View ancestor)
Tells wether this view has a given view in its ancestors |
void |
setContext(DisplayContext context)
Sets the display context for this view. |
void |
setDescription(String description)
Sets a static message to be display by the view when opened. |
void |
setFactory(ViewFactory factory)
Sets the factory for this view (WEB, SWING or other supported factory). |
void |
setFocus(FieldItem field,
Object option)
Focus a field of an object's view. |
void |
setLabel(String label)
Sets the label (the identifier) of the view. |
void |
setMessage(MethodItem method)
Sets a dynamic message to be displayed by the view when opened. |
void |
setParentView(View view)
Sets the parent view of this view (a composite view). |
void |
setSize(Length width,
Length height)
Sets the preferred size for this view. |
void |
setStyle(String style)
Sets the view style. |
void |
setViewBorder(Border border)
Sets a border for this view. |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
equalsView, equalsView, getParameters, getType, setParameters, setType |
Method Detail |
public void setLabel(String label)
label
- a string that identifies the viewpublic String getLabel()
public void setMessage(MethodItem method)
method
- the method that returns a string to be dislayedsetDescription(String)
public MethodItem getMessage()
public void setDescription(String description)
description
- a string to be displayed as issetMessage(MethodItem)
public String getDescription()
public void setContext(DisplayContext context)
The display context contains the factory that is used for this view.
public DisplayContext getContext()
public void setFactory(ViewFactory factory)
public ViewFactory getFactory()
public void setSize(Length width, Length height)
width
- the preferred width. If null, the preferred width is not changed.height
- the preferred height. If null, the preferred height is not changed.public void close(boolean validate)
validate
- wether to validate any value contained in editors.public boolean isClosed()
public void setStyle(String style)
public String getStyle()
public void setViewBorder(Border border)
public Border getViewBorder()
public void setParentView(View view)
CompositeView
public View getParentView()
CompositeView
public View getRootView()
public boolean isDescendantOf(View ancestor)
ancestor
- the ancestorpublic void setFocus(FieldItem field, Object option)
field
- the field to focusoption
- an extra option
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |