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) |
public 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.ApplicationException
public 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.ApplicationException
public 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.ApplicationException
public 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.ApplicationException
public void disable()
disable
in interface de.willuhn.jameica.gui.input.Input
Input.disable()
public void enable()
enable
in interface de.willuhn.jameica.gui.input.Input
Input.enable()
public void focus()
focus
in interface de.willuhn.jameica.gui.input.Input
Input.focus()
public org.eclipse.swt.widgets.Control getControl()
getControl
in interface de.willuhn.jameica.gui.input.Input
Input.getControl()
public java.lang.Object getValue()
getValue
in interface de.willuhn.jameica.gui.input.Input
Input.getValue()
public boolean isEnabled()
isEnabled
in interface de.willuhn.jameica.gui.input.Input
Input.isEnabled()
public void setEnabled(boolean enabled)
setEnabled
in interface de.willuhn.jameica.gui.input.Input
Input.setEnabled(boolean)
public void setValue(java.lang.Object value)
setValue
in interface de.willuhn.jameica.gui.input.Input
Input.setValue(java.lang.Object)
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)
widgetDefaultSelected
in interface org.eclipse.swt.events.SelectionListener
org.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.SelectionListener
org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt
.events.SelectionEvent)