|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPart
Method Summary | |
---|---|
void |
activate()
Activates the part Which means setting starting rule processing The defaultrule should initialize the view. |
void |
addWidget(IWidget widget)
Add the specified widget to the part |
void |
addWidget(IWidget widget,
IWidget parent)
Add a widget to the specified parent.. |
void |
destroy()
Destroys the applicationPart (does a lot of cleanups) After the destroy the object is not usable anymore. |
java.lang.Object |
getBean()
|
IXuluxListener |
getFieldEventHandler(IWidget widget)
Returns a new instance of the fieldEventHandler. |
java.lang.Object |
getGuiValue(java.lang.String widgetName)
|
IInvalidValueStrategy |
getInvalidValueStrategy()
|
java.lang.String |
getName()
|
IPart |
getParentPart()
|
java.lang.String |
getProvider()
|
java.lang.Object |
getRootWidget()
If the root widget is null, the part is contained in itself |
java.util.List |
getRules()
|
ISession |
getSession()
|
IWidget |
getWidget(java.lang.String widgetName)
|
java.util.List |
getWidgets()
|
void |
initialize(java.lang.Object caller)
NOTE : Is actually not doing anything Initialize the part, which makes the gui visible, processes fields, etc. |
boolean |
isActivating()
|
boolean |
isPartDestroyed()
|
boolean |
needToStopAllRules(java.lang.Object caller)
Checks to see if all rules should stop processing. |
void |
refreshAllWidgets()
Refreshes all widgets |
void |
refreshFields(IWidget widget)
Refreshes all fields that reference the field used by the passed in widget When field is null nothing will be done. |
void |
refreshWidgets(IWidget caller)
Refreshes widgets which have a pointer to the caller in their use. |
void |
removeWidget(IWidget widget,
java.lang.Object caller)
Removes a widget. |
void |
setGuiValue(java.lang.String name,
java.lang.Object value)
Set the gui value |
void |
setInvalidValueStrategy(java.lang.String strategy)
|
void |
setName(java.lang.String name)
Set the name |
void |
setParentPart(IPart part)
Set the parent part. |
void |
setParentWidget(java.lang.Object widget)
The parent widget for all child widgets to be added |
void |
updateDependandWidgets(IWidget widget)
Updates the widgets that depends on the widget passed in. |
Method Detail |
---|
java.util.List getWidgets()
java.lang.String getName()
void setName(java.lang.String name)
name
- the nameISession getSession()
java.lang.Object getGuiValue(java.lang.String widgetName)
widgetName
- the name of the widget to get the value from
IWidget getWidget(java.lang.String widgetName)
widgetName
- the name of the widget to get.
void addWidget(IWidget widget)
widget
- the widget to addvoid destroy()
java.util.List getRules()
boolean needToStopAllRules(java.lang.Object caller)
caller
- the caller of needToStopAllRules.
This prevents the applicationcontext from stopping all rules.
void refreshAllWidgets()
java.lang.Object getBean()
void removeWidget(IWidget widget, java.lang.Object caller)
widget
- the widget to remove.caller
- - the caller of the object. Always pass
this
.void initialize(java.lang.Object caller)
caller
- - the callerjava.lang.Object getRootWidget()
void setGuiValue(java.lang.String name, java.lang.Object value)
name
- the widget namevalue
- the value to setjava.lang.String getProvider()
IPart getParentPart()
IInvalidValueStrategy getInvalidValueStrategy()
void refreshFields(IWidget widget)
widget
- the widget to refresh the fields forvoid updateDependandWidgets(IWidget widget)
widget
- the widget that other depends onvoid refreshWidgets(IWidget caller)
caller
- the caller of refreshwidgets (normally pass in this)IXuluxListener getFieldEventHandler(IWidget widget)
widget
- the widget to get the fieldeventhandler for
boolean isActivating()
void activate()
void setParentPart(IPart part)
part
- the applicationpart that serves as a parentvoid setInvalidValueStrategy(java.lang.String strategy)
strategy
- the name of the strategy to use or the class of the strategyvoid setParentWidget(java.lang.Object widget)
widget
- the widget to set the parent forvoid addWidget(IWidget widget, IWidget parent)
widget
- the widget to addparent
- the parent of the widget.boolean isPartDestroyed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |