|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.util.ValidationObject | +--org.zaval.lw.LwViewMan
This class is used to support set of views. Actually the view manager is a views container that provides following abilities:
Fields inherited from class org.zaval.util.ValidationObject |
isValidFlag |
Constructor Summary | |
LwViewMan()
|
Method Summary | |
protected LwView[] |
getAllViews()
Returns all views that are provided with the view manager. |
LwView |
getBg()
Gets the view that should be used as a background view for the owner component. |
LwView |
getBorder()
Gets the view that should be used as a border view for the owner component. |
java.awt.Insets |
getInsets()
Gets the insets of the view manager that is calculated as maximal value among all views. |
Drawable |
getParent()
Gets the owner component for this view manager. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the view manager. |
LwView |
getView()
Gets the view that should be used as a face view for the owner component. |
protected LwView |
getView(java.lang.String key)
Resolves the view by the specified view name. |
void |
invalidate()
Invalidates the view manager. |
protected void |
recalc()
Calculates the view manager metrics. |
void |
setBg(LwView s)
Sets the background view. |
void |
setBg(java.lang.String s)
Sets the background view for the owner component by the specified view name. |
void |
setBorder(LwView s)
Sets the border view. |
void |
setBorder(java.lang.String s)
Sets the border view for the owner component by the specified view name. |
protected void |
setParent(Drawable p)
Sets the owner component for this view manager. |
void |
setView(LwView s)
Sets the face view. |
void |
setView(java.lang.String s)
Sets the face view for the owner component by the specified view name. |
Methods inherited from class org.zaval.util.ValidationObject |
isValid, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LwViewMan()
Method Detail |
protected void setParent(Drawable p)
p
- the specified owner component.public Drawable getParent()
public java.awt.Insets getInsets()
public LwView getBg()
public LwView getBorder()
public LwView getView()
public void setBg(java.lang.String s)
getView
method.
This implementation of the method uses the name as a key to find the view
among static objects. The library defines some of standard views as static
objects (for example border views, button views, checkbox views and so on) and
lightweight components use the standard views to paint itself.s
- the name of the background view.public void setBorder(java.lang.String s)
getView
method.
This implementation of the method uses the name as a key to find the view
among static objects. The library defines some of standard views as static
objects (for example border views, button views, checkbox views and so on) and
lightweight components use the standard views to paint itself.s
- the name of the border view.public void setView(java.lang.String s)
getView
method.
This implementation of the method uses the name as a key to find the view
among static objects. The library defines some of standard views as static
objects (for example border views, button views, checkbox views and so on) and
lightweight components use the standard views to paint itself.s
- the name of the face view.public void setBg(LwView s)
s
- the background view.public void setBorder(LwView s)
s
- the border view.public void setView(LwView s)
s
- the face view.public void invalidate()
null
.invalidate
in class ValidationObject
protected void recalc()
recalc
in class ValidationObject
public java.awt.Dimension getPreferredSize()
protected LwView getView(java.lang.String key)
key
- the name of the view.protected LwView[] getAllViews()
recalc
method to compute insets and preferred size of the view
manager.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |