|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGuiElement
Base interface which is implemented by all jACOB GUI elements.
| Nested Class Summary | |
|---|---|
static class |
IGuiElement.GroupState
Class to reflect the (data) status of a GUI group. |
| Field Summary | |
|---|---|
static IGuiElement.GroupState |
NEW
The group state for the new mode, i.e. the data record displayed within the group is a new record. |
static java.lang.String |
RCS_ID
The internal revision control system id. |
static java.lang.String |
RCS_REV
The internal revision control system id in short form. |
static IGuiElement.GroupState |
SEARCH
The group state for the search mode, i.e. no underlying data record exists. |
static IGuiElement.GroupState |
SELECTED
The group state for the selected mode, i.e. a data record has been selected for being displayed within the group. |
static IGuiElement.GroupState |
UNDEFINED
Internal dummy group state. |
static IGuiElement.GroupState |
UPDATE
The group state for the update mode, i.e. the data record displayed within the group is going to be updated by an user. |
| Method Summary | |
|---|---|
IGuiElement |
findByName(java.lang.String name)
Traverse the GUI element tree and looks for a GUI element with the given name. |
IApplicationDefinition |
getApplicationDefinition()
Returns the definition of the application this GUI element belongs to. |
java.util.List |
getChildren()
Returns all child GUI elements of this GUI element. |
IGuiElement.GroupState |
getDataStatus()
Returns the data status of this GUI element. |
java.lang.String |
getGroupTableAlias()
Returns the name of the group table alias. |
java.lang.String |
getI18NLabel(IClientContext context)
Returns the internationalized label of this GUI element. |
java.lang.String |
getLabel()
Returns the label of this GUI element. |
java.lang.String |
getName()
Returns the name of this GUI element. |
IGuiElement |
getParent()
Returns the parent of this GUI element. |
java.lang.String |
getPathName()
Returns the full path name of this GUI element. |
boolean |
hasChild(IGuiElement element)
Checks whether the given GUI element is contained within this GUI element, i.e. the given GUI element is either a (direct) child of this GUI element or a child of a child of this GUI element and so further. |
boolean |
isEnabled()
Checks whether this GUI element is enabled. |
boolean |
isVisible()
Checks whether this GUI element is visible. |
void |
setBackgroundColor(java.awt.Color color)
Sets the background color of the GUI element. |
void |
setColor(java.awt.Color color)
Sets the foreground color of the GUI element. |
void |
setEnable(boolean isEnable)
Enables or disables this GUI element. |
void |
setLabel(java.lang.String label)
Sets the label of this GUI element. |
void |
setVisible(boolean visible)
Sets the visibility of this GUI element. |
| Field Detail |
|---|
static final java.lang.String RCS_ID
static final java.lang.String RCS_REV
static final IGuiElement.GroupState UNDEFINED
static final IGuiElement.GroupState UPDATE
IClientContext.getSelectedRecord(),
IDataTableRecord.isUpdated()static final IGuiElement.GroupState NEW
IClientContext.getSelectedRecord(),
IDataTableRecord.isNew()static final IGuiElement.GroupState SEARCH
static final IGuiElement.GroupState SELECTED
IClientContext.getSelectedRecord()| Method Detail |
|---|
boolean isVisible()
true if visible, otherwise falsevoid setVisible(boolean visible)
visible - true to make the GUI element visible,
false to make the GUI element invisiblejava.lang.String getName()
Note: GUI element names must not necessarily be unique within an application.
java.lang.String getLabel()
null, if the GUI
element has no labelgetI18NLabel(IClientContext)java.lang.String getI18NLabel(IClientContext context)
context - the current client context
null, if the GUI
element has no labelvoid setLabel(java.lang.String label)
label - the new labelvoid setBackgroundColor(java.awt.Color color)
color - The new background color of the element or nullvoid setColor(java.awt.Color color)
color - The new color of the element or nullIGuiElement getParent()
null if no parent exists, which should
be the case for top level GUI elements only.java.util.List getChildren()
List of IGuiElement. An empty list will be
returned, if no child GUI elements exist.IGuiElement findByName(java.lang.String name)
Note: This method looks up for a matching child GUI element first. If this is not successful, this method will be invoked on each child GUI element until success.
name - the name of the GUI element
null if no GUI element of
the given name exists.boolean isEnabled()
true if enabled, false if disabled.void setEnable(boolean isEnable)
isEnable - true to enable,
false to disableIGuiElement.GroupState getDataStatus()
UNDEFINED if not applicable.IApplicationDefinition getApplicationDefinition()
java.lang.String getGroupTableAlias()
null, if this GUI
element does not belong to a group.boolean hasChild(IGuiElement element)
element - the GUI element to check for containment
true, if the given GUI element is contained within
this GUI element, otherwise true.java.lang.String getPathName()
Example:
jcrm.f_incident.incidenForm.incidentGroup.myButton
|
jACOB 2.7 API Documentation. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||