|
HATS 9.0.0 Rich Client API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.ibm.hats.rcp.transform.GlobalVariableControl
public class GlobalVariableControl
This is the control that represents a global variable. This extends SWT Composite class and contains either a Label or a Text depending on the style parameter given to the constructor.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Fields inherited from interface com.ibm.hats.rcp.transform.SwtTransformationConstants |
|---|
BUTTON, LABEL, LINK, TEXT |
| Constructor Summary | |
|---|---|
GlobalVariableControl(Composite parent,
int style)
Constructs a new GlobalVariableControl with the given parent and style. |
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener listener)
Adds the listener to the collection of listeners who will be notified when the control is selected. |
void |
dispose()
Disposes of the operating system resources associated. |
Accessible |
getAccessible()
Returns the accessible object for the receiver. |
Color |
getBackground()
Returns the receiver's background color. |
Image |
getBackgroundImage()
Returns the receiver's background image. |
Control |
getControl()
Returns the child control contained by this object. |
Object |
getData()
Returns the application defined widget data associated with the receiver, or null if it has not been set. |
Object |
getData(String key)
Returns the application defined property of the receiver with the specified name, or null if it has not been set. |
Font |
getFont()
Returns the font that the receiver will use to paint textual information. |
Color |
getForeground()
Returns the foreground color that the receiver will use to draw. |
String |
getGlobalVariableName()
Returns the name of global variable. |
String |
getGlobalVariableValue()
Returns the value of the global variable. |
Image |
getImage()
Returns the receiver's image if it has one, or null if it does not. |
int |
getIndex()
Returns the index used for displaying the information on a label when the global variable is indexed. |
String |
getSeparator()
Returns the separator string used for displaying values from a indexed global variable. |
int |
getStyle()
Returns the style bits. |
String |
getText()
Returns the receiver's text. |
String |
getToolTipText()
Returns the receiver's tool tip text, or null if it has not been set. |
boolean |
isGlobalVariableIndexed()
Returns whether the global variable is indexed or not. |
boolean |
isInitialValueFromGlobalVariable()
Returns whether the initial value is set for the input box. |
boolean |
isPasswordField()
Returns whether the input box is masked as a password field or not. |
boolean |
isShared()
Returns whether the global variable is shared or not. |
boolean |
isUseAllIndices()
Returns whether all indices are used for displaying information on a label if the global variable is indexed. |
void |
removeSelectionListener(SelectionListener listener)
Removes the listener from the collection of listeners who will be notified when the control is selected. |
void |
renderControlBiDi(boolean isArabic,
boolean isScreenRtl)
Replaces SWT Text control with VisualText control. |
void |
setBackground(Color color)
Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null. |
void |
setBackgroundImage(Image image)
Sets the receiver's background image to the image specified by the argument, or to the default system color for the control if the argument is null. |
void |
setData(Object data)
Sets the application defined widget data associated with the receiver to be the argument. |
void |
setData(String key,
Object value)
Sets the application defined property of the receiver with the specified name to the given value. |
boolean |
setFocus()
Causes the receiver to have the keyboard focus. |
void |
setFont(Font font)
Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font if the argument is null. |
void |
setForeground(Color color)
Sets the receiver's foreground color to the color specified by the argument, or to the default system color if the argument is null. |
void |
setGlobalVariableIndexed(boolean isGlobalVariableIndexed)
Sets whether the global variable is indexed or not. |
void |
setGlobalVariableName(String globalVariableName)
Sets the name of global variable. |
void |
setGlobalVariableValue(String globalVariableValue)
Sets the value of the global variable. |
void |
setImage(Image image)
Sets the receiver's image to the argument, which may be null indicating that no image should be displayed. |
void |
setIndex(int index)
Sets the index to be used for displaying the information on a label when the global variable is indexed. |
void |
setInitialValueFromGlobalVariable(boolean isInitialValueFromGlobalVariable)
Sets whether the initial value is set for the input box. |
void |
setPasswordField(boolean isPasswordField)
Sets whether the input box is masked as a password field or not. |
void |
setSeparator(String separator)
Sets the separator string used for displaying values from a indexed global variable. |
void |
setShared(boolean isShared)
Sets whether the global variable is shared or not. |
void |
setText(String string)
Sets the receiver's text. |
void |
setToolTipText(String string)
Sets the receiver's tool tip text to the argument, which may be null indicating that no tool tip text should be shown. |
void |
setUseAllIndices(boolean useAllIndices)
Sets whether all indices are used for displaying information on a label if the global variable is indexed. |
void |
setVisualStaticGlobalVariable(boolean isVisualStaticGlobalVariable)
Sets whether the insertion static text Global variable is in Visual format. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, getDisplay, getListeners, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalVariableControl(Composite parent,
int style)
parent - parent Compositestyle - style bitsSwtTransformationConstants.BUTTON,
SwtTransformationConstants.LINK| Method Detail |
|---|
public void renderControlBiDi(boolean isArabic,
boolean isScreenRtl)
public int getStyle()
getStyle in class WidgetGlobalVariableControl.GlobalVariableControl(Composite, int)public void dispose()
dispose in class Widgetpublic Accessible getAccessible()
getAccessible in class Controlpublic boolean setFocus()
setFocus in class Compositepublic void addSelectionListener(SelectionListener listener)
listener - the listener which should be notifiedpublic void removeSelectionListener(SelectionListener listener)
listener - the listener which should no longer be notifiedpublic void setText(String string)
string - the new textpublic String getText()
public void setToolTipText(String string)
setToolTipText in class Controlstring - the new tool tip text (or null)public String getToolTipText()
getToolTipText in class Controlpublic void setData(Object data)
setData in class Widgetdata - the widget datapublic void setData(String key,
Object value)
setData in class Widgetkey - the name of the propertyvalue - the new value for the propertypublic Object getData()
getData in class Widgetpublic Object getData(String key)
getData in class Widgetkey - the name of the property
public void setBackground(Color color)
setBackground in class Controlcolor - the new color (or null)public Color getBackground()
getBackground in class Controlpublic void setBackgroundImage(Image image)
setBackgroundImage in class Controlimage - the new image (or null)public Image getBackgroundImage()
getBackgroundImage in class Controlpublic void setFont(Font font)
setFont in class Controlfont - the new font (or null)public Font getFont()
getFont in class Controlpublic void setForeground(Color color)
setForeground in class Controlcolor - the new color (or null)public Color getForeground()
getForeground in class Controlpublic void setImage(Image image)
image - the image to display on the label (may be null)public Image getImage()
public String getGlobalVariableName()
GlobalVariableControl.setGlobalVariableName(String)public void setGlobalVariableName(String globalVariableName)
globalVariableName - the new name of the global variableGlobalVariableControl.getGlobalVariableName()public int getIndex()
GlobalVariableControl.setIndex(int)public void setIndex(int index)
index - the new index valueGlobalVariableControl.getIndex()public boolean isGlobalVariableIndexed()
GlobalVariableControl.setGlobalVariableIndexed(boolean)public void setGlobalVariableIndexed(boolean isGlobalVariableIndexed)
isGlobalVariableIndexed - true if the global variable is indexed, false if it is notGlobalVariableControl.isGlobalVariableIndexed()public void setVisualStaticGlobalVariable(boolean isVisualStaticGlobalVariable)
isVisualStaticGlobalVariable - true if the insertion of static text Global variable is in Visual format,
false if it is notpublic boolean isInitialValueFromGlobalVariable()
GlobalVariableControl.setInitialValueFromGlobalVariable(boolean)public void setInitialValueFromGlobalVariable(boolean isInitialValueFromGlobalVariable)
isInitialValueFromGlobalVariable - true if the initial value is set for the input box, false if
it is notGlobalVariableControl.isInitialValueFromGlobalVariable()public boolean isPasswordField()
GlobalVariableControl.setPasswordField(boolean)public void setPasswordField(boolean isPasswordField)
isPasswordField - whether the input box is masked as a password field or not.GlobalVariableControl.isPasswordField()public boolean isShared()
GlobalVariableControl.setShared(boolean)public void setShared(boolean isShared)
isShared - true if the global variable is shared, false if it is not.GlobalVariableControl.isShared()public String getSeparator()
GlobalVariableControl.setSeparator(String)public void setSeparator(String separator)
separator - the separator stringGlobalVariableControl.getSeparator()public boolean isUseAllIndices()
GlobalVariableControl.setUseAllIndices(boolean)public void setUseAllIndices(boolean useAllIndices)
useAllIndices - true if all indices are used, false if it is notGlobalVariableControl.isUseAllIndices()public String getGlobalVariableValue()
GlobalVariableControl.setGlobalVariableValue(String)public void setGlobalVariableValue(String globalVariableValue)
globalVariableValue - the value of the global variableGlobalVariableControl.getGlobalVariableValue()public Control getControl()
GlobalVariableControl.GlobalVariableControl(Composite, int)
|
HATS 9.0.0 (201308041338) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||