Package de.willuhn.jameica.gui.input
Class FontInput
- java.lang.Object
-
- de.willuhn.jameica.gui.input.AbstractInput
-
- de.willuhn.jameica.gui.input.ButtonInput
-
- de.willuhn.jameica.gui.input.FontInput
-
public class FontInput extends ButtonInput
Eingabefeld, zur Auswahl einer Schrift.- Author:
- willuhn
-
-
Field Summary
-
Fields inherited from class de.willuhn.jameica.gui.input.ButtonInput
buttonEnabled, clientControl, clientControlEnabled, value
-
Fields inherited from interface de.willuhn.jameica.gui.input.Input
DATAKEY_TOOLTIP
-
-
Constructor Summary
Constructors Constructor Description FontInput(org.eclipse.swt.graphics.Font font)
Erzeugt ein neues FontInput mit der angegebenen Schriftart.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Control
getClientControl(org.eclipse.swt.widgets.Composite parent)
Liefert das einzubettende Eingabefeld.java.lang.Object
getValue()
Liefert die aktuell ausgewaehlte Schriftart.void
setValue(java.lang.Object value)
Erwartet ein Object vom TypFont
.-
Methods inherited from class de.willuhn.jameica.gui.input.ButtonInput
addButtonListener, disable, disableButton, disableClientControl, enable, enableButton, enableClientControl, focus, getControl, isEnabled, setButtonImage, setButtonText, setEnabled, update
-
Methods inherited from class de.willuhn.jameica.gui.input.AbstractInput
addListener, addListener, getData, getName, getParent, getStyleBits, hasChanged, isMandatory, paint, paint, setComment, setData, setInvalidChars, setMandatory, setName, setValidChars
-
-
-
-
Method Detail
-
getClientControl
public org.eclipse.swt.widgets.Control getClientControl(org.eclipse.swt.widgets.Composite parent)
Description copied from class:ButtonInput
Liefert das einzubettende Eingabefeld.- Specified by:
getClientControl
in classButtonInput
- Parameters:
parent
- Composite, in dem sich das ClientControl malen soll.- Returns:
- das fertig gemalte Control.
-
getValue
public java.lang.Object getValue()
Liefert die aktuell ausgewaehlte Schriftart. Rueckgabewert vom TypFont
.- Returns:
- Wert des Feldes.
-
setValue
public void setValue(java.lang.Object value)
Erwartet ein Object vom TypFont
.- Parameters:
value
- der neu anzuzeigende Wert.
-
-