org.formaria.swt
Class SplitPane

java.lang.Object
  extended by Composite
      extended by org.formaria.swt.Panel
          extended by org.formaria.swt.SplitPane

public class SplitPane
extends Panel

Draws a splitpane

Copyright (c) Formaria Ltd., 2008

License: see license.txt $Revision: 2.18 $


Field Summary
 
Fields inherited from class org.formaria.swt.Panel
BORDER_BEVEL, BORDER_FLAT, BORDER_NONE
 
Constructor Summary
SplitPane(java.lang.Object parent)
          Create a splitpane
 
Method Summary
protected  void checkSubclass()
          Suppress the subclassing exception
 int getSizeSplit()
          Return the size attribute
 java.lang.String getToolTip()
          Get the tooltip text
 void layout()
          Do the layout
 void layoutHorizontal()
          Do the layout for a horizontal splitpane
 void layoutVertical()
          Do the layout for a vertical splitpane
 void setLocation(int location)
          Set the location attribute
 void setOrientation(java.lang.String orientation)
          Set the orientation
 void setSize(int size)
          Set the size attribute
 void setToolTip(java.lang.String text)
          Set the tooltip text
 void superLayout()
          Do the layout of the panel
 
Methods inherited from class org.formaria.swt.Panel
getDrawFrame, setBounds, setDrawBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitPane

public SplitPane(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 Panel

setToolTip

public void setToolTip(java.lang.String text)
Set the tooltip text

Overrides:
setToolTip in class Panel
Parameters:
text - the new text

getToolTip

public java.lang.String getToolTip()
Get the tooltip text

Overrides:
getToolTip in class Panel
Returns:
the existing text if any

setOrientation

public void setOrientation(java.lang.String orientation)
Set the orientation

Parameters:
orientation - vert or otherwuse horzizontal

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


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