Class EAbsoluteData

All Implemented Interfaces:
IELayoutProp, IDefaultGUnitProvider, IDefaultPropertyValueProvider<GUnit>, ITransferContainerProps, ITooltipPropList, EventListener, IGProp<GProp<?>[]>, IPropCnr, ILayoutAssumeHeight, ILayoutAssumeWidth, ILayoutDataAlignX, ILayoutDataAlignY, ILayoutUnitHeight, ILayoutUnitWidth, Cloneable

public class EAbsoluteData extends AbsoluteData implements IELayoutProp, IDefaultGUnitProvider
Setup layout data for a component in a container with absolute layout.
Author:
Christopher Mindus
  • Constructor Details

    • EAbsoluteData

      public EAbsoluteData()
      Creates a AbsoluteData container without name and with a null value.
    • EAbsoluteData

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

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

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

      public GUnit getDefaultValue(Atom name, GUnit defaultValue)
      Gets the default value to use when a value is defined and no previous text is available.
      Specified by:
      getDefaultValue in interface IDefaultPropertyValueProvider<GUnit>
      Parameters:
      name - The edited property name.
      defaultValue - The default value as defined by the property editor information.
    • 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.
    • verify

      public boolean verify(PropVerification verification)
      Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
      Specified by:
      verify in interface IGProp<GProp<?>[]>
      Overrides:
      verify in class PropCnr
      Parameters:
      verification - The property verification class.
      Returns:
      true if verification should proceed, false if disposed of and verification should not take place.
    • 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.