Class EMenuBarData

All Implemented Interfaces:
IELayoutProp, ITransferContainerProps, ITooltipPropList, EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable

public class EMenuBarData extends MenuBarData implements IELayoutProp
Setup layout data for a component in a container with menu bar layout.
Author:
Christopher Mindus
  • Constructor Details

    • EMenuBarData

      public EMenuBarData()
      Creates a AccordionData container without name and with a null value.
    • EMenuBarData

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

      public EMenuBarData(UIComp uiComp)
      Creates a MenuBarData container for the component in question, used e.g. to fill in the defaults. This property is named Atom.LAYOUT.
      Parameters:
      uiComp - The component needing new layout data.
    • EMenuBarData

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

    • getCNDescriptionType

      public String getCNDescriptionType()
      Gets the description.
      Specified by:
      getCNDescriptionType in interface ITransferContainerProps
      Returns:
      A type description for the status bar view, or null if not available.
    • getTransferProps

      public Object[] getTransferProps()
      Returns the list of properties that are transferable between layout managers.
      Specified by:
      getTransferProps in interface ITransferContainerProps
      Returns:
      The list of String's or Atom's that are transferable, null for none.
    • getGroupText

      public String getGroupText(PropCnr[] pcs, StringBuilder tooltip, boolean[] isHTML)
      Formats a string representation for the layout group. This method is called when a property has been changed for the group.
      Specified by:
      getGroupText in interface IELayoutProp
      Parameters:
      pcs - The property container being edited.
      tooltip - String buffer to fill with tool tip text.
      isHTML - Set [0] to true for HTML before returning if tooltip text is in HTML format.
      Returns:
      A string for the text label, the string buffer filled with the tooltip text.
    • getTooltipPropertyList

      public List<TooltipItem> getTooltipPropertyList()
      Gets the list of property names that should be displayed.
      Specified by:
      getTooltipPropertyList in interface ITooltipPropList
      Returns:
      The list, or null for no tooltip.