Class Splitter

  • All Implemented Interfaces:
    org.eclipse.swt.graphics.Drawable

    public class Splitter
    extends org.eclipse.swt.widgets.Composite
    • Constructor Summary

      Constructors 
      Constructor Description
      Splitter​(org.eclipse.swt.widgets.Composite parent, int style)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFixedSizeChangeListener​(PropertyChangeListener listener)  
      org.eclipse.swt.graphics.Point computeSize​(int wHint, int hHint, boolean changed)  
      protected void firePropertyChange​(int oldValue, int newValue)  
      int getFixedSize()  
      org.eclipse.swt.widgets.Control getMaximizedControl()
      Answer the control that currently is maximized in the SashForm.
      int getOrientation()
      Answer SWT.HORIZONTAL if the controls in the SashForm are laid out side by side.
      int getSashWidth()  
      void layout​(boolean changed)  
      void maintainSize​(org.eclipse.swt.widgets.Control c)  
      void removeFixedSizeChangeListener​(PropertyChangeListener listener)  
      void setFixedSize​(int newSize)  
      void setLayout​(org.eclipse.swt.widgets.Layout layout)  
      void setMaximizedControl​(org.eclipse.swt.widgets.Control control)
      Specify the control that should take up the entire client area of the SashForm.
      void setOrientation​(int orientation)
      If orientation is SWT.HORIZONTAL, lay the controls in the SashForm out side by side.
      void setSashWidth​(int width)  
      • Methods inherited from class org.eclipse.swt.widgets.Composite

        changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList, toString
      • Methods inherited from class org.eclipse.swt.widgets.Scrollable

        computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
      • Methods inherited from class org.eclipse.swt.widgets.Control

        addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
      • Methods inherited from class org.eclipse.swt.widgets.Widget

        addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
      • Methods inherited from interface org.eclipse.swt.graphics.Drawable

        isAutoScalable
    • Constructor Detail

      • Splitter

        public Splitter​(org.eclipse.swt.widgets.Composite parent,
                        int style)
    • Method Detail

      • firePropertyChange

        protected void firePropertyChange​(int oldValue,
                                          int newValue)
      • removeFixedSizeChangeListener

        public void removeFixedSizeChangeListener​(PropertyChangeListener listener)
      • getFixedSize

        public int getFixedSize()
      • setFixedSize

        public void setFixedSize​(int newSize)
      • computeSize

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

        public int getOrientation()
        Answer SWT.HORIZONTAL if the controls in the SashForm are laid out side by side. Answer SWT.VERTICAL if the controls in the SashForm are laid out top to bottom.
        Overrides:
        getOrientation in class org.eclipse.swt.widgets.Control
      • getSashWidth

        public int getSashWidth()
      • getMaximizedControl

        public org.eclipse.swt.widgets.Control getMaximizedControl()
        Answer the control that currently is maximized in the SashForm. This value may be null.
      • layout

        public void layout​(boolean changed)
        Overrides:
        layout in class org.eclipse.swt.widgets.Composite
      • maintainSize

        public void maintainSize​(org.eclipse.swt.widgets.Control c)
      • setOrientation

        public void setOrientation​(int orientation)
        If orientation is SWT.HORIZONTAL, lay the controls in the SashForm out side by side. If orientation is SWT.VERTICAL, lay the controls in the SashForm out top to bottom.
        Overrides:
        setOrientation in class org.eclipse.swt.widgets.Control
      • setSashWidth

        public void setSashWidth​(int width)
      • setLayout

        public void setLayout​(org.eclipse.swt.widgets.Layout layout)
        Overrides:
        setLayout in class org.eclipse.swt.widgets.Composite
      • setMaximizedControl

        public void setMaximizedControl​(org.eclipse.swt.widgets.Control control)
        Specify the control that should take up the entire client area of the SashForm. If one control has been maximized, and this method is called with a different control, the previous control will be minimized and the new control will be maximized.. if the value of control is null, the SashForm will minimize all controls and return to the default layout where all controls are laid out separated by sashes.