public final class LabelPart extends java.lang.Object implements de.willuhn.jameica.gui.Part, LabelButtonListener, LabelInputTextChangeListener
Modifier and Type | Field and Description |
---|---|
static int |
BAR_HEIGHT
Die Linienhöe
|
static int |
MB_HEIGHT
Die Höhe der mittleren Linie
|
static int |
MB_TOP_MARGIN
Das obere Margin der mittleren Linie
|
static int |
TB_HEIGHT
Die Höhe der oberen Linie
|
static int |
TB_TOP_MARGIN
Das obere Margin der oberen Linie
|
static int |
TEXT_LEFT_RIGHT_MARGIN
Left and right margin of text section in millimetre
|
Constructor and Description |
---|
LabelPart(LabelSizeEnum labelSize,
LabelPartListener listener)
Erstellt eine neue Ordnerbeschriftung mit der angegeben Breite.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(LabelPartListener listener)
Fügt eine Listener hinzu
|
int |
getAlignment(LabelPartSectionsEnum section)
Liefert die Textausrichtung des angegebenen Eingabefeldes.
|
org.eclipse.swt.graphics.Color |
getBarColour()
Liefert die Farbe der Linien.
|
java.lang.Boolean |
getBarVisible()
Liefert die Sichtbarkeit der Linien
|
org.eclipse.swt.graphics.Color |
getBgColour()
Liefert die Hintergrundfarbe des Labels.
|
java.lang.String |
getContentText()
Liefert den Text des Hauptfeldes
|
int |
getDirection(LabelPartSectionsEnum section)
Returns the direction of the requested area
|
org.eclipse.swt.graphics.Color |
getFgColour(LabelPartSectionsEnum section)
Liefert die Textfarbe in einem angegeben Eingabefeld.
|
org.eclipse.swt.graphics.Font |
getFont(LabelPartSectionsEnum section)
Liefert den Schrifttyp ein dem angegeben Eingabefeld.
|
java.lang.String |
getFooterText()
Liefert den Text des Fußfeldes
|
java.lang.String |
getIdText()
Liefert die ID
|
LabelSizeEnum |
getLabelSize()
Liefert die Breite des Labels
|
java.lang.String |
getTitelText()
Liefert den Text des Titelfeldes
|
boolean |
isIdVisible()
Liefert die Sichtbarkeit der ID
|
void |
notifyInputButtonClicked(LabelPartSectionsEnum section,
LabelPartButtonsEnum button)
notifies registered listener that a button was clicked
|
void |
notifyTextChanged()
notifies registered listener that a button was clicked
|
void |
paint(org.eclipse.swt.widgets.Composite parent) |
void |
removeListener(LabelPartListener listener)
Entfernd einen Listener aus der Liste
|
void |
setAlignment(LabelPartSectionsEnum section,
int alignment)
Setzt die Textausrichtung in einem angegeben Eingabefeld.
|
void |
setBarColour(org.eclipse.swt.graphics.Color colour)
Setzt die Farbe der Linien
|
void |
setBarVisible(boolean lineVisible)
Setzt die Sichtbarkeit der Linien
|
void |
setBgColour(org.eclipse.swt.graphics.Color colour)
Setzt die Hintergrundfarbe des Labels.
|
void |
setContentText(java.lang.String content)
Setzt den Text des Hauptfeldes
|
void |
setDirection(LabelPartSectionsEnum section,
int direction)
Set the text direction for the given section.
|
void |
setFont(LabelPartSectionsEnum section,
org.eclipse.swt.graphics.Font font)
Setzt den Schrifttyp in einem angegeben Eingabefeld.
|
void |
setFooterText(java.lang.String footer)
Setzt den Text des Fußfeldes
|
void |
setForegroundColor(LabelPartSectionsEnum section,
org.eclipse.swt.graphics.Color color)
Setzt die Textfarbe in einem angegeben Eingabefeld.
|
void |
setIdText(java.lang.String idText)
Setzt die ID
|
void |
setIdVisible(boolean visible)
Setzt die Sichtbarkeit der ID
|
void |
setTitleAlignment(int titelAlignment) |
void |
setTitleText(java.lang.String titel)
Setzt den Text des Titelfeldes
|
public static final int TEXT_LEFT_RIGHT_MARGIN
public static final int TB_HEIGHT
public static final int TB_TOP_MARGIN
public static final int MB_HEIGHT
public static final int MB_TOP_MARGIN
public static final int BAR_HEIGHT
public LabelPart(LabelSizeEnum labelSize, LabelPartListener listener)
labelSize
- - Breite des Labels in Millimeterlistener
- - Listener für Knöpfepublic void addListener(LabelPartListener listener)
listener
- der hinzugefügt werden sollpublic int getAlignment(LabelPartSectionsEnum section)
section
- das Eingabefeldpublic org.eclipse.swt.graphics.Color getBarColour()
public java.lang.Boolean getBarVisible()
public org.eclipse.swt.graphics.Color getBgColour()
public java.lang.String getContentText()
public int getDirection(LabelPartSectionsEnum section)
section
- das Eingabefeldpublic org.eclipse.swt.graphics.Color getFgColour(LabelPartSectionsEnum section)
section
- das Eingabefeldpublic org.eclipse.swt.graphics.Font getFont(LabelPartSectionsEnum section)
section
- das Eingabefeldpublic java.lang.String getFooterText()
public java.lang.String getIdText()
public LabelSizeEnum getLabelSize()
public java.lang.String getTitelText()
public boolean isIdVisible()
public void notifyInputButtonClicked(LabelPartSectionsEnum section, LabelPartButtonsEnum button)
LabelButtonListener
notifyInputButtonClicked
in interface LabelButtonListener
section
- the section containing the button that was clickedbutton
- the button type that was clickedLabelButtonListener.notifyInputButtonClicked(de.frankmuenster.jameica.orverw.parts.labelpart.LabelPartSectionsEnum,
de.frankmuenster.jameica.orverw.parts.labelpart.buttons.LabelPartButtonsEnum)
public void notifyTextChanged()
LabelInputTextChangeListener
notifyTextChanged
in interface LabelInputTextChangeListener
LabelInputTextChangeListener.notifyTextChanged()
public void paint(org.eclipse.swt.widgets.Composite parent) throws java.rmi.RemoteException
paint
in interface de.willuhn.jameica.gui.Part
java.rmi.RemoteException
Part.paint(org.eclipse.swt.widgets.Composite)
public void removeListener(LabelPartListener listener)
listener
- der entfernt werden sollpublic void setAlignment(LabelPartSectionsEnum section, int alignment)
section
- das Eingabefeld.alignment
- die Textausrichtungpublic void setBarColour(org.eclipse.swt.graphics.Color colour)
colour
- die Farbe der Linienpublic void setBarVisible(boolean lineVisible)
lineVisible
- die Sichtbarkeit der Linienpublic void setBgColour(org.eclipse.swt.graphics.Color colour)
colour
- die Hintergrundfarbe des Labels.public void setContentText(java.lang.String content)
content
- der Text des Hauptfeldespublic void setDirection(LabelPartSectionsEnum section, int direction)
section
- the LabelPartSectionsEnum
direction
- the directionpublic void setFont(LabelPartSectionsEnum section, org.eclipse.swt.graphics.Font font)
section
- das Eingabefeldfont
- den Schrifttyppublic void setFooterText(java.lang.String footer)
footer
- Der Text des Fußfeldespublic void setForegroundColor(LabelPartSectionsEnum section, org.eclipse.swt.graphics.Color color)
section
- das Eingabefeldcolor
- die Farbepublic void setIdText(java.lang.String idText)
idText
- Die IDpublic void setIdVisible(boolean visible)
visible
- die Sichtbarkeit der IDpublic void setTitleAlignment(int titelAlignment)
titelAlignment
- public void setTitleText(java.lang.String titel)
titel
- der Text des Titelfeldes