public abstract class AbstractTab extends java.lang.Object implements IRenderConfigTab
Modifier and Type | Field and Description |
---|---|
protected static int |
BUTTON_WIDTH
The standard with for buttons.
|
protected static org.apache.log4j.Logger |
logger
Logger instance
|
protected TabItem |
tabItem |
Constructor and Description |
---|
AbstractTab() |
Modifier and Type | Method and Description |
---|---|
protected void |
createLabledComposite(Label lab,
Control control,
java.lang.String labelText,
java.lang.String labelToolTip)
Sets the Label text and the tooltip on the Label and the Control.
|
abstract void |
createTab(TabFolder folder)
Called by the framework in order to create all GUI items.
|
protected java.lang.String |
getStringNullSave(java.lang.String value) |
TabItem |
getTabItem() |
abstract void |
setInitialValues()
Sets the initial values of no render configuration is set.
|
protected java.lang.Character |
stringToNullableChar(java.lang.String s)
Converts the first character of the given String into a
Character . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRenderConfiguration, setRenderConfiguration
protected TabItem tabItem
protected static final int BUTTON_WIDTH
protected static org.apache.log4j.Logger logger
public TabItem getTabItem()
TabItem
represented by Tab implementation.public abstract void createTab(TabFolder folder)
IRenderConfigTab
createTab
in interface IRenderConfigTab
folder
- The TabFolder
holding the tab.public abstract void setInitialValues()
IRenderConfigTab
setInitialValues
in interface IRenderConfigTab
protected java.lang.String getStringNullSave(java.lang.String value)
value
- The value to be checked.NULL
.
NEVER NULL
!protected java.lang.Character stringToNullableChar(java.lang.String s)
Converts the first character of the given String into a Character
.
If the String is NULL
or EMPTY
, NULL
is returned.
s
- The String to be used.Character
of the String or NULL
if the String is NULL
or EMPTY
.protected void createLabledComposite(Label lab, Control control, java.lang.String labelText, java.lang.String labelToolTip)
lab
- The Lable to be used.control
- The Control to be used.labelText
- The Label text to be usedlabelToolTip
- The tooltip message to be set on the Label and the Control.