|
||||||||||
| 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.grid.LwGridCaption
This component is used as the top grid component caption with a custom views. The list below desribes basic features of the component:
putTitle method to set caption title for appropriate column.
setViewProvider method to customize the caption views.
setBorderView method to customize the caption border view.
| Field Summary | |
static int |
DEF_ROWHEIGHT
The default row height. |
| 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 | |
LwGridCaption(LwGridMetrics m)
Constructs the object with the specified grid metrics. |
|
| Method Summary | |
protected java.awt.Dimension |
calcPreferredSize()
Gets the "pure" preferred size for this component. |
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. |
java.lang.Object |
getTitle(int col)
Gets the title value for the specified column. |
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 |
paint(java.awt.Graphics g)
Paints this component. |
void |
putTitle(int col,
java.lang.Object title)
Sets the given title value for the specified column. |
protected void |
recalc()
Invoked with validate method only if the component is not valid. |
void |
setBorderView(LwView v)
Sets the specified view to render the caption border. |
void |
setViewProvider(LwGridViewProvider p)
Sets the specified view provider. |
void |
startDragged(LwMouseMotionEvent e)
Invoked when the mouse starts dragged. |
| Methods inherited from class org.zaval.lw.LwCanvas |
canHaveFocus, getBackground, getBounds, getHeight, getInsets, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getSize, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isVisible, repaint, repaint, requestFocus, setBackground, setEnabled, setInsets, setLocation, setLwParent, setOpaque, 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.util.Validationable |
isValid |
| Field Detail |
public static final int DEF_ROWHEIGHT
| Constructor Detail |
public LwGridCaption(LwGridMetrics m)
m - the specified grid metrics.| Method Detail |
public void setBorderView(LwView v)
p - the specified view .public void setViewProvider(LwGridViewProvider p)
LwDefViews as the default view
provider.p - the specified view provider.public java.lang.Object getTitle(int col)
col - the specified column.
public void putTitle(int col,
java.lang.Object title)
null value as the title value.col - the specified column.title - the specified title value.public void startDragged(LwMouseMotionEvent e)
LwMouseMotionListenerstartDragged in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.public void endDragged(LwMouseMotionEvent e)
LwMouseMotionListenerendDragged in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.public void mouseDragged(LwMouseMotionEvent e)
LwMouseMotionListenermouseDragged in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.public void mouseMoved(LwMouseMotionEvent e)
LwMouseMotionListenermouseMoved in interface LwMouseMotionListenerorg.zaval.lw.event.LwMouseMotionListenere - the specified mouse motion event.
public int getCursorType(LwComponent target,
int x,
int y)
CursorablegetCursorType in interface Cursorableorg.zaval.lw.Cursorabletarget - the given component.x - the x coordinate of the location.y - the y coordinate of the location.public void paint(java.awt.Graphics g)
LwCanvaspaint in class LwCanvasorg.zaval.lw.LwCanvasg - the graphics context to be used for painting.protected void recalc()
LwCanvasvalidate method only if the component is not valid.
The method shoud be overrided to calculate metrical characteristics of the component to
minimize computation time of the preferred size for the component. For example, you can
calculate a preferred size inside the method and just return it by
calcPreferredSize method.recalc in class LwCanvasprotected java.awt.Dimension calcPreferredSize()
LwCanvasgetPreferredSize method.calcPreferredSize in class LwCanvasorg.zaval.lw.LwCanvas
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||