public class LabelInputText
extends java.lang.Object
implements de.willuhn.jameica.gui.Part
Constructor and Description |
---|
LabelInputText(org.eclipse.swt.graphics.Point size)
Creates a new LabelInputText with the size and intent
|
LabelInputText(org.eclipse.swt.graphics.Point size,
int textAlignment)
Creates a new LabelInputText with the size and text alignment.
|
LabelInputText(org.eclipse.swt.graphics.Point size,
int textAlignment,
int textDirection)
Creates a new LabelInputText with the size and text alignment.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(LabelInputTextChangeListener listener)
Fügt eine Listener hinzu
|
org.eclipse.swt.graphics.Color |
getBackground() |
org.eclipse.swt.graphics.Font |
getFont() |
org.eclipse.swt.graphics.Color |
getForeground() |
org.eclipse.swt.graphics.Point |
getSize() |
java.lang.String |
getText() |
int |
getTextAlignment() |
int |
getTextDirection() |
boolean |
isCenterVertical() |
void |
notifyListeners()
Notifies registered listeners, that the text has changed
|
void |
paint(org.eclipse.swt.widgets.Composite parent) |
void |
removeListener(LabelInputTextChangeListener listener)
Entfernd einen Listener aus der Liste
|
void |
setBackground(org.eclipse.swt.graphics.Color background) |
void |
setCenterVertical(boolean centerVertical) |
void |
setFont(org.eclipse.swt.graphics.Font font) |
void |
setForeground(org.eclipse.swt.graphics.Color color) |
void |
setText(java.lang.String text)
Set the text to display and redraw the label if not NULL.
|
void |
setTextAlignment(int textAlignment) |
void |
setTextDirection(int textDirection) |
public LabelInputText(org.eclipse.swt.graphics.Point size)
size
- the initial sizepublic LabelInputText(org.eclipse.swt.graphics.Point size, int textAlignment)
size
- the initial sizetextAlignment
- the initial text alignmentpublic LabelInputText(org.eclipse.swt.graphics.Point size, int textAlignment, int textDirection)
size
- the initial sizetextAlignment
- the initial text alignmenttextDirection
- he direction of the text. Can be SWT.LEFT, SWT.RIGHT or
SWT.HORIZONTALpublic final void addListener(LabelInputTextChangeListener listener)
listener
- der hinzugefügt werden sollpublic org.eclipse.swt.graphics.Color getBackground()
public org.eclipse.swt.graphics.Font getFont()
public org.eclipse.swt.graphics.Color getForeground()
public org.eclipse.swt.graphics.Point getSize()
public java.lang.String getText()
public int getTextAlignment()
public int getTextDirection()
public boolean isCenterVertical()
public final void notifyListeners()
public void paint(org.eclipse.swt.widgets.Composite parent)
paint
in interface de.willuhn.jameica.gui.Part
parent
- public final void removeListener(LabelInputTextChangeListener listener)
listener
- der entfernt werden sollpublic void setBackground(org.eclipse.swt.graphics.Color background)
background
- das zu setzende Objekt backgroundpublic void setCenterVertical(boolean centerVertical)
public void setFont(org.eclipse.swt.graphics.Font font)
font
- das zu setzende Objekt fontpublic void setForeground(org.eclipse.swt.graphics.Color color)
color
- das zu setzende Objekt fontColorpublic void setText(java.lang.String text)
text
- das zu setzende Objekt textpublic void setTextAlignment(int textAlignment)
textAlignment
- die zu setzende Textausrichtungpublic void setTextDirection(int textDirection)
textDirection
- set text direction to set. Can be SWT.LEFT, SWT.RIGHT or
SWT.HORIZONTAL