Package de.willuhn.jameica.gui.parts
Class NotificationPanel
- java.lang.Object
-
- de.willuhn.jameica.gui.parts.NotificationPanel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NotificationPanel.Type
Der Typ der Notification.
-
Constructor Summary
Constructors Constructor Description NotificationPanel()
ct.NotificationPanel(NotificationPanel.Type type, java.lang.String text)
ct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
paint(org.eclipse.swt.widgets.Composite parent)
Malt die Komponente in das angegebene Composite.void
reset()
Resettet das Panel.void
setBackground(boolean background)
Legt fest, ob der farbige Hintergrund gezeichnet werden soll.void
setBorder(int border)
Legt die Rahmendicke fest.void
setText(NotificationPanel.Type t, java.lang.String s)
Aktualisiert den Text mit dem angegebenen Typ an.
-
-
-
Constructor Detail
-
NotificationPanel
public NotificationPanel()
ct.
-
NotificationPanel
public NotificationPanel(NotificationPanel.Type type, java.lang.String text)
ct.- Parameters:
type
- der Typ.text
- der Text.
-
-
Method Detail
-
setBackground
public void setBackground(boolean background)
Legt fest, ob der farbige Hintergrund gezeichnet werden soll.- Parameters:
background
- true, wenn der farbige Hintergrund gezeichnet werden soll.
-
setBorder
public void setBorder(int border)
Legt die Rahmendicke fest.- Parameters:
border
- die Rahmendicke.
-
paint
public void paint(org.eclipse.swt.widgets.Composite parent) throws java.rmi.RemoteException
Description copied from interface:Part
Malt die Komponente in das angegebene Composite.- Specified by:
paint
in interfacePart
- Parameters:
parent
- das Composite.- Throws:
java.rmi.RemoteException
- See Also:
Part.paint(org.eclipse.swt.widgets.Composite)
-
setText
public void setText(NotificationPanel.Type t, java.lang.String s)
Aktualisiert den Text mit dem angegebenen Typ an. Der Text wird nach 10 Sekunden automatisch ausgeblendet.- Parameters:
t
- der Typ.s
- der Text.
-
reset
public void reset()
Resettet das Panel.
-
-