Class ContextMenuLayout

All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable
Direct Known Subclasses:
EContextMenuLayout

public class ContextMenuLayout extends LayoutMgr<ContextMenuData>
Menu specific layout manager.
Author:
Christopher Mindus
  • Constructor Details

    • ContextMenuLayout

      public ContextMenuLayout()
      Creates the layout without name with a null value.
    • ContextMenuLayout

      public ContextMenuLayout(Atom propertyAtom)
      Creates the layout with the specified name with a null value.
      Parameters:
      propertyAtom - the property atom.
    • ContextMenuLayout

      public ContextMenuLayout(Atom propertyAtom, GProp<?>[] properties) throws PropException
      Creates the layout with the specified name and properties.
      Parameters:
      propertyAtom - the property atom.
      properties - the property array value for the layout manager.
      Throws:
      PropException - as structural changes in containers on client is prohibited.
  • Method Details

    • clone

      public ContextMenuLayout clone()
      Creates a clone out of this property. The cloning is overridden by the subclasses in order to handle cloning of its class variables appropriately.
      Overrides:
      clone in class LayoutMgr<ContextMenuData>
    • createDefaultLayoutProp

      public ContextMenuData createDefaultLayoutProp(UIComp uiComp)
      Creates the default LayoutProp to use for a new component that is inserted directly into the UIComps container.
      Specified by:
      createDefaultLayoutProp in class LayoutMgr<ContextMenuData>
      Parameters:
      uiComp - The component requesting the default layout property.
      Returns:
      A new instance of the layout data of this layout manager.
    • getLayoutPropClass

      public Class<ContextMenuData> getLayoutPropClass()
      Returns the class required for this layout property.
      Specified by:
      getLayoutPropClass in class LayoutMgr<ContextMenuData>
      Returns:
      The class for the layout property required.