|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.zaval.util.ValidationObject | +--org.zaval.lw.LwCanvas | +--org.zaval.lw.LwPanel | +--org.zaval.lw.LwSplitPan
This split panel component is used to divide the container area into two resizeable areas. The container area can be divided by horizontal splitter or vertical splitter. The component implements and use special layout manager, so don't try to redefine the layout manager with any other.
Fields inherited from class org.zaval.lw.LwPanel |
children |
Fields inherited from class org.zaval.lw.LwCanvas |
bits, height, insets, parent, psHeight, psWidth, skins, width, x, y |
Fields inherited from class org.zaval.util.ValidationObject |
isValidFlag |
Constructor Summary | |
LwSplitPan(LwComponent f,
LwComponent s)
Constructs a split panel with the specified child components for the two splitter areas. |
|
LwSplitPan(LwComponent f,
LwComponent s,
int o)
Constructs a split panel with the specified child components for the two splitter areas and the given splitter type. |
Method Summary | |
java.awt.Dimension |
calcPreferredSize(LayoutContainer c)
Calculates the preferred size dimension for the layout container. |
boolean |
catchInput(LwComponent child)
Checks if input events for the specified child component should be caught. |
void |
componentAdded(java.lang.Object obj,
Layoutable c,
int index)
Invoked when the specified layoutable component is added to the layout container (that uses the layout manager). |
void |
componentRemoved(Layoutable c,
int index)
Invoked when the specified layoutable component is removed from the layout container, that uses the layout manager. |
void |
endDragged(LwMouseMotionEvent e)
Invoked when the mouse ends dragged. |
int |
getCursorType(LwComponent target,
int x,
int y)
Gets the cursor type for the specified location of the given component. |
protected LwLayout |
getDefaultLayout()
Gets the default layout manager that is set with the container during initialization. |
LwComponent |
getGripper()
Gets the component that has been laid as the gripper. |
int |
getGripperLoc()
Gets the gripper component location. |
int |
getOrientation()
Gets the splitter type. |
void |
layout(LayoutContainer target)
Lays out the child layoutable components inside the layout container. |
void |
mouseDragged(LwMouseMotionEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseMoved(LwMouseMotionEvent e)
Invoked when the mouse pointer has been moved on a light weight component (with no buttons no down). |
void |
setGap(int g)
Sets the specified gap. |
void |
setGripperLoc(int l)
Sets the specified gripper component location. |
void |
setOrientation(int o)
Sets the specified orientation. |
void |
startDragged(LwMouseMotionEvent e)
Invoked when the mouse starts dragged. |
boolean |
stretchGripper()
Tests if the gripper element is stretched over all available splitter room. |
void |
stretchGripper(boolean b)
Sets the gripper element to be stretched or not over all available room. |
Methods inherited from class org.zaval.lw.LwPanel |
add, add, calcPreferredSize, count, get, getLayoutOffset, getLwComponentAt, getLwLayout, indexOf, insert, insert, invalidate, paintOnTop, recalc, remove, remove, removeAll, setBackground, setLwLayout, setOpaque, toFront, updateCashedPs |
Methods inherited from class org.zaval.lw.LwCanvas |
canHaveFocus, getBackground, getBounds, getHeight, getInsets, getLocation, getLwParent, getOrigin, getPreferredSize, getSize, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, isEnabled, isOpaque, isVisible, paint, repaint, repaint, requestFocus, setEnabled, setInsets, setLocation, setLwParent, setPSSize, setSize, setViewMan, setVisible, toString, update, validate, viewManChanged, vrp |
Methods inherited from class org.zaval.util.ValidationObject |
isValid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.zaval.lw.LwContainer |
add, add, getLwLayout, indexOf, insert, paintOnTop, remove, removeAll, setLwLayout |
Methods inherited from interface org.zaval.lw.LwComponent |
canHaveFocus, getLwComponentAt, getLwParent, getViewMan, getVisiblePart, setBackground, setEnabled, setLwParent, setViewMan, setVisible |
Methods inherited from interface org.zaval.lw.Drawable |
getBackground, getOrigin, isEnabled, isOpaque, paint, repaint, repaint, setOpaque, update |
Methods inherited from interface org.zaval.util.Validationable |
invalidate, isValid, validate |
Methods inherited from interface org.zaval.lw.Layoutable |
getBounds, getHeight, getInsets, getLocation, getPreferredSize, getSize, getWidth, getX, getY, isVisible, setLocation, setSize |
Methods inherited from interface org.zaval.lw.LayoutContainer |
count, get, getLayoutOffset |
Constructor Detail |
public LwSplitPan(LwComponent f, LwComponent s)
f
- the first child component.s
- the second child component.public LwSplitPan(LwComponent f, LwComponent s, int o)
f
- the first child component.s
- the second child component.d
- the splitter type. The splitter type can have LwToolkit.VERTICAL or
LwToolkit.HORIZONTAL value.Method Detail |
public void setGap(int g)
g
- the specified gap.public int getOrientation()
public void setOrientation(int o)
o
- the specified orientation.public boolean stretchGripper()
true
if the gripper element is stretched over all available room.public void stretchGripper(boolean b)
b
- use true
to stretch the gripper element over all available room.public void startDragged(LwMouseMotionEvent e)
LwMouseMotionListener
startDragged
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public void endDragged(LwMouseMotionEvent e)
LwMouseMotionListener
endDragged
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public void mouseDragged(LwMouseMotionEvent e)
LwMouseMotionListener
mouseDragged
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public void mouseMoved(LwMouseMotionEvent e)
LwMouseMotionListener
mouseMoved
in interface LwMouseMotionListener
org.zaval.lw.event.LwMouseMotionListener
e
- the specified mouse motion event.public int getCursorType(LwComponent target, int x, int y)
Cursorable
getCursorType
in interface Cursorable
org.zaval.lw.Cursorable
target
- the given component.x
- the x coordinate of the location.y
- the y coordinate of the location.public boolean catchInput(LwComponent child)
LwComposite
catchInput
in interface LwComposite
org.zaval.lw.LwComposite
child
- the specified child component.true
if input events for the child component should be caught by this
component; false
otherwise.public LwComponent getGripper()
public void setGripperLoc(int l)
l
- the specified gripper component location.public int getGripperLoc()
public java.awt.Dimension calcPreferredSize(LayoutContainer c)
calcPreferredSize
in interface LwLayout
c
- the layout container.public void layout(LayoutContainer target)
layout
in interface LwLayout
target
- the layout container that needs to be laid out.public void componentAdded(java.lang.Object obj, Layoutable c, int index)
LwLayout
componentAdded
in interface LwLayout
org.zaval.lw.LwLayout
id
- the layoutable component constraints.lw
- the layoutable component that has been added.index
- the child index.public void componentRemoved(Layoutable c, int index)
LwLayout
componentRemoved
in interface LwLayout
org.zaval.lw.LwLayout
lw
- the layoutable component that has been removed.index
- the child component index.protected LwLayout getDefaultLayout()
LwPanel
getDefaultLayout
in class LwPanel
org.zaval.lw.LwPanel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |