Class ESwapLayout

    • Constructor Detail

      • ESwapLayout

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

        public ESwapLayout​(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 Detail

      • getPropertyEditorLayoutDataSetup

        public java.lang.Object[] getPropertyEditorLayoutDataSetup()
        Gets the layout data settings for a component.
        Specified by:
        getPropertyEditorLayoutDataSetup in interface IELayoutMgr<ESwapData>
        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.
      • createDefaultLayoutProp

        public ESwapData 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<ESwapData>
        Overrides:
        createDefaultLayoutProp in class SwapLayout
        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 java.lang.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.