Class DefaultSingleCDockable

All Implemented Interfaces:
CDockable, SingleCDockable

@ClientOnly public class DefaultSingleCDockable extends DefaultCDockable implements SingleCDockable
A DefaultSingleCDockable is an element which has a content-pane where clients can add or remove as many Components as they whish.
Author:
Benjamin Sigg
See Also:
  • Constructor Details

    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, CAction... actions)
      Creates a new dockable
      Parameters:
      id - a unique id, not null
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, Component content, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      content - a Component which will be shown in the middle of this dockable, can be null.
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, String title, Component content, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      title - the text shown in the title, can be null
      content - a Component which will be shown in the middle of this dockable, can be null.
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, Icon icon, Component content, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      icon - the icon shown in the title, can be null
      content - a Component which will be shown in the middle of this dockable, can be null.
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, Icon icon, String title, Component content, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      icon - the icon shown in the title, can be null
      title - the text shown in the title, can be null
      content - a Component which will be shown in the middle of this dockable, can be null.
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, String title, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      title - the text shown in the title, can be null
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, Icon icon, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      icon - the icon shown in the title, can be null
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, Icon icon, String title, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      icon - the icon shown in the title, can be null
      title - the text shown in the title, can be null
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, Icon icon, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      icon - the icon shown in the title, can be null
      title - the text shown in the title, can be null
      content - a Component which will be shown in the middle of this dockable, can be null.
      permissions - what actions the user is allowed to do, null will be replaced by DefaultCDockable.Permissions.DEFAULT.
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
    • DefaultSingleCDockable

      public DefaultSingleCDockable(String id, Icon icon, IconHandling iconHandling, String title, Component content, DefaultCDockable.Permissions permissions, CAction... actions)
      Creates a new dockable.
      Parameters:
      id - the unique id, must not be null
      icon - the icon shown in the title, can be null
      iconHandling - how to behave if icon is null
      title - the text shown in the title, can be null
      content - a Component which will be shown in the middle of this dockable, can be null.
      permissions - what actions the user is allowed to do, null will be replaced by DefaultCDockable.Permissions.DEFAULT.
      actions - the actions shown in the title, can be null. A separator is inserted for every entry that is null of this array.
  • Method Details

    • getUniqueId

      public String getUniqueId()
      Gets the id of this dockable. The id is unique among all dockables which are added to the same CControl.
      Specified by:
      getUniqueId in interface SingleCDockable
      Returns:
      the unique id