de.limdul.cassiopeia.gui.tools
Class PanelModifier

java.lang.Object
  extended by de.limdul.cassiopeia.gui.tools.PanelModifier
All Implemented Interfaces:
Runnable

 class PanelModifier
extends Object
implements Runnable

Klasse, um ein Panel zu modifizieren.

Author:
Martin Köhler

Field Summary
static int ADD
          Panel soll hinzugefügt werden.
static int ADD_BORDER
          Border soll hinzugefügt werden
static int REMOVE_ALL
          Panel soll komplett geleert werden.
static int REMVOE
          Panel soll entfernt werden.
static int SET_PREF_SIZE
          Die Preferred Size soll gesetzt werden
 
Constructor Summary
PanelModifier(JComponent owner, Border border)
          Erzeugt die Klasse.
PanelModifier(JComponent owner, Component child, int action)
          Erzeugt die Klasse
PanelModifier(JComponent owner, Component child, int action, Object constraint)
          Erzeugt die Klasse
PanelModifier(JPanel owner, Dimension dim)
          Erzeugt die Klasse.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD

public static final int ADD
Panel soll hinzugefügt werden.

See Also:
Constant Field Values

REMVOE

public static final int REMVOE
Panel soll entfernt werden.

See Also:
Constant Field Values

REMOVE_ALL

public static final int REMOVE_ALL
Panel soll komplett geleert werden.

See Also:
Constant Field Values

ADD_BORDER

public static final int ADD_BORDER
Border soll hinzugefügt werden

See Also:
Constant Field Values

SET_PREF_SIZE

public static final int SET_PREF_SIZE
Die Preferred Size soll gesetzt werden

See Also:
Constant Field Values
Constructor Detail

PanelModifier

public PanelModifier(JPanel owner,
                     Dimension dim)
Erzeugt die Klasse.

Parameters:
owner - Das Vaterpanel.
dim - Die gewünschte Preferred Size

PanelModifier

public PanelModifier(JComponent owner,
                     Border border)
Erzeugt die Klasse.

Parameters:
owner - Das Vaterpanel.
border - Der hinzuzufügende rahmen.

PanelModifier

public PanelModifier(JComponent owner,
                     Component child,
                     int action)
Erzeugt die Klasse

Parameters:
owner - Das Vaterpanel.
child - Die Kindkomponente
action - Was ausgeführt werden soll.

PanelModifier

public PanelModifier(JComponent owner,
                     Component child,
                     int action,
                     Object constraint)
Erzeugt die Klasse

Parameters:
owner - Das Vaterpanel.
child - Die Kindkomponente
action - Was ausgeführt werden soll.
constraint - Zusätzliche Bedingung.
Method Detail

run

public void run()
Specified by:
run in interface Runnable
See Also:
Runnable.run()