net.xoetrope.swt
Class XSplitPane

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by net.xoetrope.swt.XPanel
                      extended by net.xoetrope.swt.XSplitPane
All Implemented Interfaces:
XAttributedComponent, org.eclipse.swt.graphics.Drawable

public class XSplitPane
extends XPanel
implements XAttributedComponent

Draws a splitpane

Copyright (c) Xoetrope Ltd., 1998-2003

License: see license.txt $Revision: 2.18 $


Field Summary
 
Fields inherited from class net.xoetrope.swt.XPanel
BORDER_BEVEL, BORDER_FLAT, BORDER_NONE
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
XSplitPane(java.lang.Object parent)
          Create a splitpane
 
Method Summary
protected  void checkSubclass()
          Suppress the subclassing exception
 int getSizeSplit()
          Return the size attribute
 void layout()
          Do the layout
 void layoutHorizontal()
          Do the layout for a horizontal splitpane
 void layoutVertical()
          Do the layout for a vertical splitpane
 int setAttribute(java.lang.String attribName, java.lang.Object attribValue)
          Set one or more attributes of the component.
 void setLocation(int location)
          Set the location attribute
 void setSize(int size)
          Set the size attribute
 void superLayout()
          Do the layout of the panel
 
Methods inherited from class net.xoetrope.swt.XPanel
getDrawFrame, setBounds, setDrawFrame
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XSplitPane

public XSplitPane(java.lang.Object parent)
Create a splitpane

Parameters:
parent - parent object
Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception

Overrides:
checkSubclass in class XPanel

setAttribute

public int setAttribute(java.lang.String attribName,
                        java.lang.Object attribValue)
Set one or more attributes of the component.

Specified by:
setAttribute in interface XAttributedComponent
Overrides:
setAttribute in class XPanel
Parameters:
attribName - the name of the attribute
attribValue - the value of the attribute
Returns:
0 for success, non zero for failure or to require some further action

setLocation

public void setLocation(int location)
Set the location attribute

Parameters:
location - the value of location

setSize

public void setSize(int size)
Set the size attribute

Parameters:
size - the value of size

getSizeSplit

public int getSizeSplit()
Return the size attribute


layout

public void layout()
Do the layout

Overrides:
layout in class org.eclipse.swt.widgets.Composite

superLayout

public void superLayout()
Do the layout of the panel


layoutVertical

public void layoutVertical()
Do the layout for a vertical splitpane


layoutHorizontal

public void layoutHorizontal()
Do the layout for a horizontal splitpane