public class TextStyleInput
extends de.willuhn.jameica.gui.input.AbstractInput
implements org.eclipse.swt.events.SelectionListener
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNMENT
Show alignment buttons
|
static int |
BACKGROUND
Show background colour button
|
static int |
FOREGROUND
Show foreground colour button
|
| Constructor and Description |
|---|
TextStyleInput(TextStyle style)
Erzeugt ein TextStyleInput Part mit allen Buttons sichtbar.
|
TextStyleInput(TextStyle style,
int showOption)
Erzeugt ein TextStyleInput Part mit den angegebenen Buttons.
|
TextStyleInput(TextStyle style,
int showOption,
org.eclipse.swt.graphics.Point exampleWidth)
Erzeugt ein TextStyleInput Part mit den angegebenen Buttons.
|
TextStyleInput(TextStyle style,
org.eclipse.swt.graphics.Point exampleWidth)
Erzeugt ein TextStyleInput Part mit allen Buttons sichtbar.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
void |
focus() |
org.eclipse.swt.widgets.Control |
getControl() |
java.lang.Object |
getValue() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setValue(java.lang.Object value) |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0) |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent event) |
addListener, getData, getName, getParent, getStyleBits, hasChanged, isMandatory, paint, paint, setComment, setData, setInvalidChars, setMandatory, setName, setValidChars, updatepublic static final int FOREGROUND
public static final int BACKGROUND
public static final int ALIGNMENT
public TextStyleInput(TextStyle style) throws de.willuhn.util.ApplicationException
style - das TextStyle Object, dass als Grundlage dient.de.willuhn.util.ApplicationExceptionpublic TextStyleInput(TextStyle style, int showOption) throws de.willuhn.util.ApplicationException
style - das TextStyle Object, dass als Grundlage dient.showOption - Buttons die sichtbar sind. Mögliche Werte sind
TextStyleInput.FOREGROUND, TextStyleInput.BACKGROUND,
TextStyleInput.ALIGNMENT.de.willuhn.util.ApplicationExceptionpublic TextStyleInput(TextStyle style, int showOption, org.eclipse.swt.graphics.Point exampleWidth) throws de.willuhn.util.ApplicationException
style - das TextStyle Object, dass als Grundlage dient.showOption - Buttons die sichtbar sind. Mögliche Werte sind
TextStyleInput.FOREGROUND, TextStyleInput.BACKGROUND,
TextStyleInput.ALIGNMENT.exampleWidth - Breite des Beispielfeldesde.willuhn.util.ApplicationExceptionpublic TextStyleInput(TextStyle style, org.eclipse.swt.graphics.Point exampleWidth) throws de.willuhn.util.ApplicationException
style - das TextStyle Object, dass als Grundlage dient.exampleWidth - Breite des Beispielfeldesde.willuhn.util.ApplicationExceptionpublic void disable()
disable in interface de.willuhn.jameica.gui.input.InputInput.disable()public void enable()
enable in interface de.willuhn.jameica.gui.input.InputInput.enable()public void focus()
focus in interface de.willuhn.jameica.gui.input.InputInput.focus()public org.eclipse.swt.widgets.Control getControl()
getControl in interface de.willuhn.jameica.gui.input.InputInput.getControl()public java.lang.Object getValue()
getValue in interface de.willuhn.jameica.gui.input.InputInput.getValue()public boolean isEnabled()
isEnabled in interface de.willuhn.jameica.gui.input.InputInput.isEnabled()public void setEnabled(boolean enabled)
setEnabled in interface de.willuhn.jameica.gui.input.InputInput.setEnabled(boolean)public void setValue(java.lang.Object value)
setValue in interface de.willuhn.jameica.gui.input.InputInput.setValue(java.lang.Object)public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerorg.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse
.swt.events.SelectionEvent)public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerorg.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt
.events.SelectionEvent)