Class VPanel

    • Field Detail

      • widget

        org.eclipse.swt.widgets.Composite widget
      • children

        java.util.List<VControl> children
      • isTopLevel

        private boolean isTopLevel
      • topLevelListener

        private org.eclipse.swt.widgets.Listener topLevelListener
    • Constructor Detail

      • VPanel

        public VPanel​(org.eclipse.swt.widgets.Composite parent,
                      int style)
      • VPanel

        public VPanel​(VPanel panel,
                      int style)
    • Method Detail

      • addChild

        void addChild​(VControl child)
      • computeSize

        public org.eclipse.swt.graphics.Point computeSize​(int wHint,
                                                          int hHint,
                                                          boolean changed)
        Overrides:
        computeSize in class VControl
      • dispose

        private void dispose​(boolean disposeComposite)
        If the dispose request comes from the Composite via the topLevelListener, then do not dispose the Composite again - controls recieving the Composite's dispose event after this VPanel will be in danger of dealing with a disposed control before they are ready.
        Parameters:
        disposeComposite -
      • getBorderWidth

        public int getBorderWidth()
      • getChildren

        public VControl[] getChildren()
      • getControl

        public VControl getControl​(int x,
                                   int y)
      • getControl

        public VControl getControl​(int x,
                                   int y,
                                   boolean includePanels)
      • getLayout

        public VLayout getLayout()
      • getLayout

        public <T extends VLayout> T getLayout​(java.lang.Class<T> clazz)
      • getWidget

        public org.eclipse.swt.widgets.Composite getWidget()
        Overrides:
        getWidget in class VControl
      • layout

        public void layout()
      • layout

        public void layout​(boolean changed)
      • removeChild

        void removeChild​(VControl child)
      • removeVChild

        void removeVChild​(VControl vchild)
      • setActivatable

        public void setActivatable​(boolean activatable)
        Overrides:
        setActivatable in class VControl
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int width,
                              int height)
        Overrides:
        setBounds in class VControl
      • setEnabled

        public void setEnabled​(boolean enabled)
        Overrides:
        setEnabled in class VControl
      • setFocus

        protected boolean setFocus​(boolean focus)
        Overrides:
        setFocus in class VControl
      • setLayout

        public void setLayout​(VLayout layout)
      • setLayoutData

        public void setLayoutData​(org.eclipse.swt.layout.GridData data)
        Overrides:
        setLayoutData in class VControl
      • setSize

        public void setSize​(org.eclipse.swt.graphics.Point size)
        Overrides:
        setSize in class VControl
      • setVisibility

        public void setVisibility​(int visibility)
        Overrides:
        setVisibility in class VControl
      • setVisible

        public void setVisible​(boolean visible)
        Overrides:
        setVisible in class VControl
      • setWidget

        public void setWidget​(org.eclipse.swt.widgets.Composite widget)
      • sort

        public void sort​(java.util.Comparator<VControl> comparator)
      • updateColorsAndFont

        public void updateColorsAndFont()