GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSplitPane
Nested Class Summary | |
protected class |
|
Nested classes/interfaces inherited from class javax.swing.JComponent | |
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container | |
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component | |
Component.AccessibleAWTComponent , Component.BltBufferStrategy , Component.FlipBufferStrategy |
Field Summary | |
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static int |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static int |
|
protected boolean |
|
protected int |
|
protected int |
|
protected Component |
|
protected boolean |
|
protected int |
|
protected Component |
|
Fields inherited from class javax.swing.JComponent | |
TOOL_TIP_TEXT_KEY , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW , accessibleContext , listenerList , ui |
Fields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver | |
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
Constructor Summary | |
| |
| |
| |
| |
|
Method Summary | |
protected void | |
AccessibleContext |
|
Component |
|
int |
|
int |
|
int |
|
Component |
|
int |
|
int |
|
int |
|
double |
|
Component |
|
Component |
|
SplitPaneUI |
|
String |
|
boolean |
|
boolean |
|
boolean |
|
protected void |
|
protected String |
|
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public static final String BOTTOM
The constraints string used to add components to the bottom.
- Field Value:
- "bottom"
public static final String CONTINUOUS_LAYOUT_PROPERTY
The property fired when the continuousLayout property changes.
- Field Value:
- "continuousLayout"
public static final String DIVIDER
The property fired when the divider property changes.
- Field Value:
- "divider"
public static final String DIVIDER_LOCATION_PROPERTY
The property fired when the divider location property changes.
- Field Value:
- "dividerLocation"
public static final String DIVIDER_SIZE_PROPERTY
The property fired when the divider size property changes.
- Field Value:
- "dividerSize"
public static final int HORIZONTAL_SPLIT
The value of the orientation when the components are split horizontally.
- Field Value:
- 1
public static final String LAST_DIVIDER_LOCATION_PROPERTY
The property fired when the last divider location property changes.
- Field Value:
- "lastDividerLocation"
public static final String LEFT
The constraints string used to add components to the left.
- Field Value:
- "left"
public static final String ONE_TOUCH_EXPANDABLE_PROPERTY
The property fired when the one touch expandable property changes.
- Field Value:
- "oneTouchExpandable"
public static final String ORIENTATION_PROPERTY
The property fired when the orientation property changes.
- Field Value:
- "orientation"
public static final String RESIZE_WEIGHT_PROPERTY
The property fired when the resize weight property changes.
- Field Value:
- "resizeWeight"
public static final String RIGHT
The constraints string used to add components to the right.
- Field Value:
- "right"
public static final String TOP
The constraints string used to add components to the top.
- Field Value:
- "top"
public static final int VERTICAL_SPLIT
The value of the orientation when the components are split vertically.
- Field Value:
- 0
protected int lastDividerLocation
The last location of the divider given by the UI.
protected boolean oneTouchExpandable
Whether the JSplitPane uses one touch expandable buttons.
public JSplitPane()
Creates a new JSplitPane object using HORIZONTAL_SPLIT and a nonContinuousLayout mode.
public JSplitPane(int newOrientation)
Creates a new JSplitPane object using a nonContinuousLayout mode and the given orientation.
- Parameters:
newOrientation
- The orientation to use.
public JSplitPane(int newOrientation, boolean newContinuousLayout)
Creates a new JSplitPane object with the given layout mode and orientation.
- Parameters:
newOrientation
- The orientation to use.newContinuousLayout
- The layout mode to use.
public JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent)
Creates a new JSplitPane object with the given orientation, layout mode, and left and right components.
- Parameters:
newOrientation
- The orientation to use.newContinuousLayout
- The layout mode to use.newLeftComponent
- The left component.newRightComponent
- The right component.
- Throws:
IllegalArgumentException
- DOCUMENT ME!
public JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent)
Creates a new JSplitPane object using nonContinuousLayout mode, the given orientation and left and right components.
- Parameters:
newOrientation
- The orientation to use.newLeftComponent
- The left component.newRightComponent
- The right component.
protected void addImpl(Component comp, Object constraints, int index)
This method adds a component to the JSplitPane. The constraints object is a string that identifies where this component should go. If the constraints is not a known one, it will throw an IllegalArgumentException. The valid constraints are LEFT, TOP, RIGHT, BOTTOM and DIVIDER.
- Parameters:
comp
- The component to add.constraints
- The constraints string to use.index
- Where to place to component in the list of components.
- Throws:
IllegalArgumentException
- When the constraints is not a known identifier.
public AccessibleContext getAccessibleContext()
Returns the object that provides accessibility features for thisJSplitPane
component.
- Specified by:
- getAccessibleContext in interface Accessible
- Overrides:
- getAccessibleContext in interface JComponent
- Returns:
- The accessible context (an instance of
JSplitPane.AccessibleJSplitPane
).
public Component getBottomComponent()
This method returns the bottom component.
- Returns:
- The bottom component.
public int getDividerLocation()
This method returns the location of the divider. This method is passed to the UI.
- Returns:
- The location of the divider.
public int getDividerSize()
This method returns the size of the divider.
- Returns:
- The size of the divider.
public int getLastDividerLocation()
This method returns the last divider location.
- Returns:
- The last divider location.
public Component getLeftComponent()
This method returns the left component.
- Returns:
- The left component.
public int getMaximumDividerLocation()
This method returns the maximum divider location. This method is passed to the UI.
- Returns:
- DOCUMENT ME!
public int getMinimumDividerLocation()
This method returns the minimum divider location. This method is passed to the UI.
- Returns:
- The minimum divider location.
public int getOrientation()
This method returns the orientation that the JSplitPane is using.
- Returns:
- The current orientation.
public double getResizeWeight()
This method returns the current resize weight.
- Returns:
- The current resize weight.
public Component getRightComponent()
This method returns the right component.
- Returns:
- The right component.
public Component getTopComponent()
This method returns the top component.
- Returns:
- The top component.
public String getUIClassID()
This method returns a string identifier to determine which UI class it needs.
- Overrides:
- getUIClassID in interface JComponent
- Returns:
- A string that identifies it's UI class.
public boolean isContinuousLayout()
This method returns true if the JSplitPane is using a continuousLayout.
- Returns:
- True if using a continuousLayout.
public boolean isOneTouchExpandable()
This method returns true if the divider has one touch expandable buttons.
- Returns:
- True if one touch expandable is used.
public boolean isValidateRoot()
This method returns true.
- Overrides:
- isValidateRoot in interface JComponent
- Returns:
- true.
protected void paintChildren(Graphics g)
This method overrides JComponent's paintChildren so the UI can be messaged when the children have finished painting.
- Overrides:
- paintChildren in interface JComponent
- Parameters:
g
- The Graphics object to paint with.
protected String paramString()
Returns an implementation-dependent string describing the attributes of thisJSplitPane
.
- Overrides:
- paramString in interface JComponent
- Returns:
- A string describing the attributes of this
JSplitPane
(nevernull
).
public void remove(int index)
This method removes the component at the given index.
- Parameters:
index
- The index of the component to remove.
public void remove(Component component)
This method removes the given component from the JSplitPane.
- Parameters:
component
- The Component to remove.
public void resetToPreferredSizes()
This method resets all children of the JSplitPane to their preferred sizes.
public void setBottomComponent(Component comp)
This method sets the bottom component.
- Parameters:
comp
- The Component to be placed at the bottom.
public void setContinuousLayout(boolean newContinuousLayout)
This method sets the layout mode for the JSplitPane.
- Parameters:
newContinuousLayout
- Whether the JSplitPane is in continuousLayout mode.
public void setDividerLocation(double proportionalLocation)
This method sets the location of the divider. A value of 0 sets the divider to the farthest left. A value of 1 sets the divider to the farthest right.
- Parameters:
proportionalLocation
- A double that describes the location of the divider.
- Throws:
IllegalArgumentException
- ifproportionalLocation
is not in the range from 0.0 to 1.0 inclusive.
public void setDividerLocation(int location)
This method sets the location of the divider.
- Parameters:
location
- The location of the divider. The negative value forces to compute the new location from the preferred sizes of the split pane components.
public void setDividerSize(int newSize)
This method sets the size of the divider.
- Parameters:
newSize
- The size of the divider.
public void setLastDividerLocation(int newLastLocation)
This method sets the last location of the divider.
- Parameters:
newLastLocation
- The last location of the divider.
public void setLeftComponent(Component comp)
This method sets the left component.
- Parameters:
comp
- The left component.
public void setOneTouchExpandable(boolean newValue)
This method sets whether the divider has one touch expandable buttons. The one touch expandable buttons can expand the size of either component to the maximum allowed size.
- Parameters:
newValue
- Whether the divider will have one touch expandable buttons.
public void setOrientation(int orientation)
Sets the orientation for theJSplitPane
and sends aPropertyChangeEvent
(with the property nameORIENTATION_PROPERTY
) to all registered listeners.
- Parameters:
orientation
- the orientation (eitherHORIZONTAL_SPLIT
orVERTICAL_SPLIT
).
- Throws:
IllegalArgumentException
- iforientation
is not one of the listed values.
public void setResizeWeight(double value)
This method determines how extra space will be distributed among the left and right components. A value of 0 will allocate all extra space to the right component. A value of 1 indicates that all extra space will go to the left component. A value in between 1 and 0 will split the space accordingly.
- Parameters:
value
- The resize weight.
public void setRightComponent(Component comp)
This method sets the right component.
- Parameters:
comp
- The right component.
public void setTopComponent(Component comp)
This method sets the top component.
- Parameters:
comp
- The top component.
public void setUI(SplitPaneUI ui)
This method sets the UI used by the JSplitPane.
- Parameters:
ui
- The UI to use.
public void updateUI()
This method resets the UI to the one specified by the current Look and Feel.
- Overrides:
- updateUI in interface JComponent
GNU Classpath (0.95) |