Class ETabLayout

All Implemented Interfaces:
ILinkCapable, IUIBuilderFromVSLinkEnabler, IELayoutMgr<ETabData>, IELayoutMgrDND<ETabData>, IELayoutMgrSimpleDND<ETabData>, IEUICompBase, IReplaceLayoutData, IPropDesigner, ITransferContainerProps, EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable, org.eclipse.core.runtime.IAdaptable

public class ETabLayout extends TabLayout implements IELayoutMgrSimpleDND<ETabData>
Tab layout.
Author:
Christopher Mindus
  • Constructor Details

    • ETabLayout

      public ETabLayout()
      Creates the property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • ETabLayout

      public ETabLayout(Atom propertyAtom)
      Creates the property container with the specified name. All system-reserved names for components begins with "$".
      Parameters:
      propertyAtom - the name of the component, unique within it's parent.
  • Method Details

    • getLayoutDataClass

      public Class<ETabData> getLayoutDataClass()
      Gets the layout data class.
      Specified by:
      getLayoutDataClass in interface IELayoutMgr<ETabData>
    • getDesigner

      public UILayoutDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • getPropertyEditorLayoutDataSetup

      public Object[] getPropertyEditorLayoutDataSetup()
      Gets the layout data settings for a component.
      Specified by:
      getPropertyEditorLayoutDataSetup in interface IELayoutMgr<ETabData>
      Returns:
      The layout additional objects, or null for none.
    • getCNImage

      public org.eclipse.swt.graphics.Image getCNImage(boolean isMobile)
      Gets the image for the Common Navigator.
      Specified by:
      getCNImage in interface IEUICompBase
      Parameters:
      isMobile - The mobile theme flag.
      Returns:
      Image or null if there is no image.
    • getCNDescriptionType

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

      public ETabLayout clone()
      Clone must be overridden.
      Overrides:
      clone in class TabLayout
    • createDefaultLayoutProp

      public ETabData 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 interface IELayoutMgr<ETabData>
      Overrides:
      createDefaultLayoutProp in class TabLayout
      Parameters:
      uiComp - The component requesting the default layout property.
      Returns:
      A new instance of the layout data of this layout manager.
    • checkReplaceLayoutData

      public void checkReplaceLayoutData(ComplexOperation op, UIComp comp)
      Perform check of the component layout data and replaces it if required.
      Specified by:
      checkReplaceLayoutData in interface IReplaceLayoutData
      Parameters:
      op - Complex operation for undo/redo, null when operation should be done directly on property.
      comp - Component to replace the layout data in.
    • 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.