Class ESwapData

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

public class ESwapData extends SwapData implements IELayoutProp
Setup layout data for a component in a container with tab layout.
Author:
Christopher Mindus
  • Constructor Details

    • ESwapData

      public ESwapData()
      Creates a TabData container without name and with a null value.
    • ESwapData

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

      public ESwapData(UIComp uiComp)
      Creates a BorderData 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.
    • ESwapData

      public ESwapData(Atom propertyAtom, GProp<?>[] properties) throws PropException
      Creates a TabData 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.