public class BaseInstance
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
EXCEPTION_ERROR |
static int |
EXCEPTION_INFO |
static int |
EXCEPTION_NONE |
static int |
EXCEPTION_REQUIREDFIELD |
static int |
EXCEPTION_SMARTFILL |
static int |
EXCEPTION_WARNING |
static int |
EXCEPTION_YESNOCANCEL |
static int |
FORCE_WARNING_HANDLING |
static int |
NO_PROMPT_WITH_WARNING |
java.util.HashMap |
presentationTags
Deprecated.
|
static int |
PROMPT_WHEN_WARNING_EXIST |
Constructor and Description |
---|
BaseInstance() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(BaseInstance child) |
void |
addChild(BaseInstance child,
int index) |
void |
addRefreshListener(java.lang.String componentId)
Adds to list of listeners for when this refreshes (used to destroy widgets, etc...)
|
void |
cleanup() |
void |
clearChildren() |
void |
clearProperties() |
java.lang.Object |
clone(java.lang.String newId) |
java.lang.Object |
clone(java.lang.String newId,
java.lang.String childIdAppend) |
boolean |
getBoolean(java.lang.String property)
Returns a property as a boolean value.
|
int |
getChildCount() |
int |
getChildIndex() |
java.util.List<BaseInstance> |
getChildren() |
boolean |
getConsiderInDesigner() |
BaseDescriptor |
getDescriptor() |
java.lang.String |
getId() |
java.lang.String |
getIdExtension() |
int |
getInt(java.lang.String property,
int defaultValue)
Returns a property as a integer.
|
java.lang.String |
getLocalizedType() |
PageInstance |
getPage()
Get the PageInstance that this control belongs to.
|
ControlHandler |
getParent()
Deprecated.
FIREFOX - use getParentInstance() instead
|
BaseInstance |
getParentInstance() |
java.lang.String |
getProperty(java.lang.String key) |
java.lang.String[] |
getPropertyNames() |
java.lang.String |
getRefreshListeners()
Returns a list of listeners to notify when this refreshes (used to destroy widgets, etc...)
|
java.lang.String |
getRenderId() |
java.lang.String |
getRowNum() |
java.lang.String |
getSafeId()
Dojo/js does not allow "-" in variable id's but to keep them unique, we need to use the id.
|
java.lang.String |
getString(java.lang.String key)
Deprecated.
use getProperty() instead
|
java.lang.String |
getType() |
WebClientSession |
getWebClientSession() |
int |
handleEvent(java.lang.String methodName,
WebClientEvent event) |
int |
handleEvent(WebClientEvent event) |
boolean |
hasAnyPropertyChanged()
Checks to see if any property has changed on the control since the last time the control was rendered or 'refreshed'.
|
boolean |
hasLocalProperty(java.lang.String key) |
boolean |
hasPropertyChanged(java.lang.String property)
Checks to see if the passed in property has changed on the control since the last time the control was rendered or 'refreshed'.
|
void |
initialize()
should be extended to do any setup required by the instance.
|
void |
initProperty() |
boolean |
isDynamicContainer() |
boolean |
isOnTable() |
boolean |
isOnTableRow() |
boolean |
isVisible()
Return whether or not the instance is visible or not (Whether or not it should be shown)
Each control or component will handle visibility in it's own way.
|
boolean |
maintainControlId() |
void |
removeProperty(java.lang.String key) |
void |
setConsiderInDesigner(boolean flag) |
void |
setDescriptor(BaseDescriptor descriptor) |
void |
setDynamicContainer(boolean isDynamic) |
void |
setOnTable(boolean isOnTable) |
void |
setParent(BaseInstance parent) |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a property on the instance.
|
boolean |
setProperty(java.lang.String key,
java.lang.String value,
boolean systemCheck,
boolean showWarnings)
Sets a property on the instance.
|
void |
setRenderId(java.lang.String id) |
void |
setType(java.lang.String type)
Sets the type.
|
void |
setWebClientSession(WebClientSession wcs) |
java.lang.String |
toString() |
public static final int EXCEPTION_NONE
public static final int EXCEPTION_WARNING
public static final int EXCEPTION_REQUIREDFIELD
public static final int EXCEPTION_YESNOCANCEL
public static final int EXCEPTION_ERROR
public static final int EXCEPTION_SMARTFILL
public static final int EXCEPTION_INFO
public static final int NO_PROMPT_WITH_WARNING
public static final int PROMPT_WHEN_WARNING_EXIST
public static final int FORCE_WARNING_HANDLING
public java.util.HashMap presentationTags
public java.lang.String getId()
public java.lang.String getSafeId()
public void setRenderId(java.lang.String id)
public java.lang.String getRenderId()
public void setWebClientSession(WebClientSession wcs)
public WebClientSession getWebClientSession()
public void addChild(BaseInstance child)
public void addChild(BaseInstance child, int index)
public java.util.List<BaseInstance> getChildren()
public void clearChildren()
public BaseInstance getParentInstance()
public void setParent(BaseInstance parent)
parent
- The parent to set.public boolean hasLocalProperty(java.lang.String key)
public boolean isOnTableRow()
public java.lang.String getRowNum()
public final java.lang.String[] getPropertyNames()
@TraceDisabled public java.lang.String getProperty(java.lang.String key)
public void initProperty()
public boolean setProperty(java.lang.String key, java.lang.String value, boolean systemCheck, boolean showWarnings)
key
- - the property to setvalue
- - the value of the propertysystemCheck
- - If true and the property is a system property, don't a allow the settingshowWarnings
- - If true will show debug warnings (if debug level is 1 or greater) as to why the peroperty was not set.public void setProperty(java.lang.String key, java.lang.String value)
key
- -
the property to setvalue
- -
the value of the propertypublic void removeProperty(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public boolean getBoolean(java.lang.String property)
property
- Property to get the value forpublic int getInt(java.lang.String property, int defaultValue)
property
- Property to get the value fordefaultValue
- Default value to return if no value foundpublic ControlHandler getParent()
public int handleEvent(WebClientEvent event) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public int handleEvent(java.lang.String methodName, WebClientEvent event) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void initialize()
public BaseDescriptor getDescriptor()
public void setDescriptor(BaseDescriptor descriptor)
descriptor
- The descriptor to set.public java.lang.String getType()
public java.lang.String getLocalizedType()
public void setType(java.lang.String type)
public int getChildCount()
public void setConsiderInDesigner(boolean flag)
public boolean getConsiderInDesigner()
public void clearProperties()
public java.lang.Object clone(java.lang.String newId)
public java.lang.Object clone(java.lang.String newId, java.lang.String childIdAppend)
public void cleanup()
public boolean hasPropertyChanged(java.lang.String property)
property
- - The property to checkpublic boolean hasAnyPropertyChanged()
public boolean isVisible()
public PageInstance getPage()
public java.lang.String toString()
toString
in class java.lang.Object
public void addRefreshListener(java.lang.String componentId)
component
- public boolean isDynamicContainer()
public java.lang.String getRefreshListeners()
component
- public void setDynamicContainer(boolean isDynamic)
public boolean maintainControlId()
public int getChildIndex()
public java.lang.String getIdExtension()
public void setOnTable(boolean isOnTable)
public boolean isOnTable()