Class NotificationPanel

  • All Implemented Interfaces:
    Part

    public class NotificationPanel
    extends java.lang.Object
    implements Part
    Kapselt eine einzeilige Meldung (Erfolg, Fehler, Hinweis), die farblich gestaltet ist und ein Notification-Icon links enthaelt.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NotificationPanel.Type
      Der Typ der Notification.
    • 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 setText​(NotificationPanel.Type t, java.lang.String s)
      Aktualisiert den Text mit dem angegebenen Typ an.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

      • 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 interface Part
        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.