|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWidget
The IWidget interface.
Method Summary | |
---|---|
void |
addChildWidget(IWidget widget)
Doesn't do anything by default. |
void |
addDependency(java.lang.String widgetName)
|
void |
addPropertyHandler(java.lang.String name,
java.lang.String phases,
IPropertyHandler propertyHandler)
Add a propertyHandler |
void |
addXuluxListener(IXuluxListener listener)
Add a xuluxlistener to the widget. |
boolean |
canBeRootWidget()
Specifies if this widget can be a root widget, which means it can live on it's own without any parent. |
boolean |
canContainChildren()
|
boolean |
canContainValue()
|
void |
clear()
Clears the field |
void |
destroy()
Destroy a widget. |
void |
focus()
Set the focus to this widget |
java.util.List |
getChildWidgets()
|
java.util.List |
getDependencies()
Get dependencies (dependend widgets ??) |
java.lang.String |
getField()
|
java.lang.Object |
getGuiValue()
|
java.lang.String |
getName()
|
java.lang.Object |
getNativeWidget()
|
IWidget |
getParent()
|
IPart |
getPart()
|
java.lang.String |
getPrefix()
|
java.lang.Object |
getPreviousValue()
|
java.util.Map |
getProperties()
You can not use this HashMap to change properties, since it is a clone. |
java.lang.String |
getProperty(java.lang.String key)
Return the specified property. |
IPropertyHandler |
getPropertyHandler(java.lang.String name)
|
java.util.Map |
getPropertyHandlers()
|
java.lang.String |
getProvider()
|
IWidgetRectangle |
getRectangle()
|
java.util.List |
getRules()
|
java.lang.Object |
getValue()
|
IWidgetInitializer |
getWidgetInitializer()
|
java.lang.String |
getWidgetType()
|
void |
handleProperties(java.lang.String phase)
Handle the properties of a specific phase. |
void |
ignoreUse(boolean ignoreUse)
Set if the use should be ignored. |
void |
initialize()
Initializes the widget, based on the current settings |
boolean |
isEnabled()
Is the widget disabled ? |
boolean |
isRefreshing()
Specifies if the widget is currently refreshing. |
boolean |
isRequired()
|
boolean |
isValidValue()
|
boolean |
isValueEmpty()
|
boolean |
isVisible()
Is the widget hidden |
void |
refresh()
refreshes the widget. |
void |
registerRule(IRule rule)
Registers a rule in the widget and sets the owner if the rule extends Rule |
void |
setAutoRefresh(boolean autoRefresh)
Specify if the widget should autorefresh when a property changes. |
void |
setContainerWidgetHandler(IContainerWidgetHandler containerWidgetHandler)
Set the container widget handler for the widget |
void |
setEnabled(boolean enable)
No state change should take place if the widget is already in a certain state. |
void |
setField(java.lang.String field)
Sets the field. |
void |
setLazyProperty(java.lang.String key,
java.lang.Object value)
Set the property to the specified value or when value is null clear the property if it exists. |
void |
setName(java.lang.String name)
Set the name of the widget |
void |
setParent(IWidget parent)
Sets the parent of this widget. |
void |
setPart(IPart part)
Set the applicationPart |
void |
setPosition(int x,
int y)
sets the position of the current widget (on the parent..) |
void |
setPrefix(java.lang.String prefix)
Set the widget prefix |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Set a property and refresh the widget if it is initialized. |
void |
setProvider(java.lang.String provider)
Set the dataprovider for this widget |
void |
setRootWidget(boolean isRootWidget)
Specifies if this widget is a part rootWidget |
void |
setSize(int width,
int height)
Sets the size of the current widget |
void |
setValue(java.lang.Object value)
Set the value |
void |
setVisible(boolean visible)
Set the component visible or invisible |
void |
setWidgetInitializer(IWidgetInitializer initializer)
Set the widgetInitializer |
void |
setWidgetType(java.lang.String type)
|
void |
updateWidget(IWidget widget)
Updates the widget because another widget has been updated. |
Method Detail |
---|
java.lang.String getProperty(java.lang.String key)
key
- the property to get. This is case insensitive.
java.util.List getChildWidgets()
java.lang.Object getNativeWidget()
void destroy()
void initialize()
boolean isValueEmpty()
boolean canContainValue()
void focus()
java.lang.Object getGuiValue()
boolean canContainChildren()
IPart getPart()
java.lang.String getName()
void setName(java.lang.String name)
name
- java.util.List getRules()
void setParent(IWidget parent)
parent
- IWidget getParent()
boolean canBeRootWidget()
java.lang.Object getValue()
java.lang.String getProvider()
java.lang.String getField()
void updateWidget(IWidget widget)
widget
- void setValue(java.lang.Object value)
value
- the value to setjava.lang.Object getPreviousValue()
void refresh()
void setPart(IPart part)
part
- void clear()
void addChildWidget(IWidget widget)
void setRootWidget(boolean isRootWidget)
isRootWidget
- void registerRule(IRule rule)
rule
- java.lang.String getWidgetType()
void setLazyProperty(java.lang.String key, java.lang.Object value)
key
- case insensitive valuevalue
- case insensitive valueboolean isRefreshing()
void setEnabled(boolean enable)
enable
- false disables it, true, enables itvoid ignoreUse(boolean ignoreUse)
ignoreUse
- void addXuluxListener(IXuluxListener listener)
listener
- void setProperty(java.lang.String key, java.lang.Object value)
key
- the keyvalue
- the objectboolean isEnabled()
boolean isVisible()
void setVisible(boolean visible)
visible
- IWidgetRectangle getRectangle()
void setSize(int width, int height)
width
- - the width of the widgetheight
- - the height of the widgetvoid setPosition(int x, int y)
x
- - the x position on the paranty
- - the y position on the parentvoid setField(java.lang.String field)
field
- The field to setvoid setProvider(java.lang.String provider)
provider
- the provider name for this widgetjava.util.Map getProperties()
IWidgetInitializer getWidgetInitializer()
boolean isRequired()
boolean isValidValue()
void setPrefix(java.lang.String prefix)
prefix
- the prefixjava.lang.String getPrefix()
java.util.List getDependencies()
void addDependency(java.lang.String widgetName)
void setWidgetType(java.lang.String type)
void addPropertyHandler(java.lang.String name, java.lang.String phases, IPropertyHandler propertyHandler)
name
- the name (will overwrite a handler with the same name!phases
- the phase this property is needed in, or comma delimited list of phases.propertyHandler
- the propertyhandler to add.IPropertyHandler getPropertyHandler(java.lang.String name)
name
- the name of the property
java.util.Map getPropertyHandlers()
void setWidgetInitializer(IWidgetInitializer initializer)
initializer
- the initializervoid setContainerWidgetHandler(IContainerWidgetHandler containerWidgetHandler)
containerWidgetHandler
- the containerwidgethandler instance.void handleProperties(java.lang.String phase)
phase
- the phase to handle the properties for.void setAutoRefresh(boolean autoRefresh)
autoRefresh
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |