Class Splitter
- java.lang.Object
-
- org.eclipse.swt.widgets.Widget
-
- org.eclipse.swt.widgets.Control
-
- org.eclipse.swt.widgets.Scrollable
-
- org.eclipse.swt.widgets.Composite
-
- com._1c.g5.v8.dt.common.gef.controls.Splitter
-
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public class Splitter extends org.eclipse.swt.widgets.Composite
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SASH_WIDTH
protected PropertyChangeSupport
listeners
PropertyChangeSupport
-
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
-
-
-
-
Field Detail
-
DEFAULT_SASH_WIDTH
public static final int DEFAULT_SASH_WIDTH
- See Also:
- Constant Field Values
-
listeners
protected PropertyChangeSupport listeners
PropertyChangeSupport
-
-
Method Detail
-
addFixedSizeChangeListener
public void addFixedSizeChangeListener(PropertyChangeListener listener)
-
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 classorg.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 classorg.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 classorg.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 classorg.eclipse.swt.widgets.Control
-
setSashWidth
public void setSashWidth(int width)
-
setLayout
public void setLayout(org.eclipse.swt.widgets.Layout layout)
- Overrides:
setLayout
in classorg.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.
-
-