Class ColumnLayout

java.lang.Object
de.willuhn.jameica.gui.util.ColumnLayout

public class ColumnLayout extends Object
Mehrspalten-Layout.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColumnLayout(org.eclipse.swt.widgets.Composite parent, int columns)
    ct.
    ColumnLayout(org.eclipse.swt.widgets.Composite parent, int columns, boolean fullSize)
    ct.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Part part)
    Fuegt ein neues Child-Part hinzu.
    org.eclipse.swt.widgets.Composite
    Liefert das Zweispalten-Composite.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ColumnLayout

      public ColumnLayout(org.eclipse.swt.widgets.Composite parent, int columns)
      ct. Erzeugt ein neues Layout.
      Parameters:
      parent - das Parent.
      columns - Anzahl der Spalten.
    • ColumnLayout

      public ColumnLayout(org.eclipse.swt.widgets.Composite parent, int columns, boolean fullSize)
      ct. Erzeugt ein neues Layout.
      Parameters:
      parent - das Parent.
      columns - Anzahl der Spalten.
      fullSize - true, wenn es voelle Hoehe haben soll.
  • Method Details

    • getComposite

      public org.eclipse.swt.widgets.Composite getComposite()
      Liefert das Zweispalten-Composite. Kann z.Bsp. verwendet werden, wenn LabelGroups zweispaltig platziert werden sollen.
      Returns:
      das Composite.
    • add

      public void add(Part part) throws RemoteException
      Fuegt ein neues Child-Part hinzu. Die Spalte, in der das Part platziert wird, kann nicht explizit angegeben werden. Stattdessen werden die Parts einfach entsprechend der Reihenfolge auf die Spalten verteilt. Bei 2 Spalten landet der dritte hinzugefuegte Part z.Bsp. in Spalte 1, Zeile 2.
      Parameters:
      part -
      Throws:
      RemoteException