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 classNotificationPanel.TypeDer 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 voidpaint(org.eclipse.swt.widgets.Composite parent)Malt die Komponente in das angegebene Composite.voidreset()Resettet das Panel.voidsetBackground(boolean background)Legt fest, ob der farbige Hintergrund gezeichnet werden soll.voidsetBorder(int border)Legt die Rahmendicke fest.voidsetText(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.RemoteExceptionDescription copied from interface:PartMalt die Komponente in das angegebene Composite.- Specified by:
paintin 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.
-
-