|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.wcf.toolbar.ToolBarComponentSupport
visibility of a toolbar button is computed as followd
Constructor Summary | |
ToolBarComponentSupport()
|
Method Summary | |
java.lang.String |
getId()
must be unique within the toolbar. if null, the toolbar element will not be scriptable. |
java.lang.String |
getRole()
|
java.lang.String |
getVisibleExpr()
|
boolean |
isVisible()
default visible state in case no visibleExpr is set |
boolean |
isVisible(RequestContext context)
returns true if this Component is visible. |
void |
setId(java.lang.String id)
|
void |
setRole(java.lang.String role)
|
void |
setVisible(boolean visible)
default visible state in case no visibleExpr is set |
void |
setVisibleExpr(java.lang.String string)
an expression that evaluates to a boolean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tonbeller.wcf.toolbar.ToolBarComponent |
initialize, isSeparator, render |
Constructor Detail |
public ToolBarComponentSupport()
Method Detail |
public boolean isVisible(RequestContext context)
visible
property is set to false, the button is not visible.
isVisible
in interface ToolBarComponent
public java.lang.String getVisibleExpr()
public void setVisibleExpr(java.lang.String string)
ToolBarComponent
setVisibleExpr
in interface ToolBarComponent
string
- public java.lang.String getRole()
public void setRole(java.lang.String role)
role
- public boolean isVisible()
ToolBarComponent
isVisible
in interface ToolBarComponent
public void setVisible(boolean visible)
ToolBarComponent
setVisible
in interface ToolBarComponent
public java.lang.String getId()
ToolBarComponent
getId
in interface ToolBarComponent
public void setId(java.lang.String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |