|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.model.formapi.client.effect.FBFormEffect
public abstract class FBFormEffect
Base class for right click actions. These effects add special characteristics and settings to a given form item
| Constructor Summary | |
|---|---|
FBFormEffect(String name,
boolean hasSubMenu)
|
|
| Method Summary | |
|---|---|
void |
apply(FBFormItem item,
com.google.gwt.user.client.ui.PopupPanel panel)
|
com.google.gwt.user.client.ui.PopupPanel |
createPanel()
If your instance of FBFormEffect happens to need
a popup menu, override this method and create that menu
here |
protected abstract void |
createStyles()
Classes that implement FBFormEffect must write
this method, and make all actions of the effect in it |
protected FBFormItem |
getItem()
Use this method to obtain the FBFormItem
this FBFormEffect is related to |
String |
getName()
|
com.google.gwt.user.client.ui.PopupPanel |
getParent()
|
com.google.gwt.user.client.ui.Widget |
getWidget()
Use this method to obtain the UI GWT component represented by the FBFormItem this
FBFormEffect is related to |
boolean |
isValidForItem(FBFormItem item)
Override this method as a safety switch. |
void |
remove(FBFormItem item)
|
void |
setParent(com.google.gwt.user.client.ui.PopupPanel parent)
|
void |
setWidget(com.google.gwt.user.client.ui.Widget widget)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FBFormEffect(String name,
boolean hasSubMenu)
name - Name of the effect for the drop menuhasSubMenu - if this effect, on selection, opens a new popup menu| Method Detail |
|---|
public String getName()
public void apply(FBFormItem item,
com.google.gwt.user.client.ui.PopupPanel panel)
public void remove(FBFormItem item)
protected abstract void createStyles()
FBFormEffect must write
this method, and make all actions of the effect in it
public com.google.gwt.user.client.ui.PopupPanel createPanel()
FBFormEffect happens to need
a popup menu, override this method and create that menu
here
protected FBFormItem getItem()
FBFormItem
this FBFormEffect is related to
FBFormItempublic void setWidget(com.google.gwt.user.client.ui.Widget widget)
public com.google.gwt.user.client.ui.PopupPanel getParent()
public void setParent(com.google.gwt.user.client.ui.PopupPanel parent)
public com.google.gwt.user.client.ui.Widget getWidget()
FBFormItem this
FBFormEffect is related to
widget - the UI GWT component of the related FBFormItempublic boolean isValidForItem(FBFormItem item)
FBFormEffect only works for
a given set of components, or for components
with a given characteristic, and you want to check
it, you can override this method to say when it the
makes sense to have this FBFormEffect related to
a given FBFormItem
Default implementation always returns true
item - the related FBFormItem to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||