public class LabelInputEnhanced
extends de.willuhn.jameica.gui.input.LabelInput
LabelInput
to provide information if the control has been
created already.Constructor and Description |
---|
LabelInputEnhanced(java.lang.String text,
int width)
Creates a new LabelInput with the given text
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Control |
getControl() |
boolean |
hasControl()
Gives back true in case the parent composite is not null and is
not disposed.
|
boolean |
isVisible()
Returns
true if the receiver is visible and all ancestors up
to and including the receiver's nearest ancestor shell are visible. |
void |
setBackground(org.eclipse.swt.graphics.Color color)
Set the backgorund colour
|
void |
setTextAlignment(int alignment)
Controls how text and images will be displayed in the receiver.
|
void |
setVisible(boolean visible)
Marks the receiver as visible if the argument is
true , and
marks it invisible otherwise. |
disable, enable, focus, getValue, isEnabled, setColor, setEnabled, setValue, update
public LabelInputEnhanced(java.lang.String text, int width)
text
- The text to displaypublic org.eclipse.swt.widgets.Control getControl()
getControl
in interface de.willuhn.jameica.gui.input.Input
getControl
in class de.willuhn.jameica.gui.input.LabelInput
public boolean hasControl()
public boolean isVisible()
true
if the receiver is visible and all ancestors up
to and including the receiver's nearest ancestor shell are visible.
Otherwise, false is returned.public void setBackground(org.eclipse.swt.graphics.Color color)
color
- background colour.public void setTextAlignment(int alignment)
LEFT
, RIGHT
or
CENTER
.alignment
- the new alignmentpublic void setVisible(boolean visible)
true
, and
marks it invisible otherwise. visible
- the new visibility state