|
||||||||||
| 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.LwWindow
This class is window lightweight component that can be used as a desktop window. The view of the component is like standard window (java.awt.Frame for example)that contains following elements and features:
getTitle and setTitle methods to control it.
setIcon method to specified the icon view.
setCaptionColor method to customize it.
isSizeable
and setSizeable methods to disable or enable sizing of the window
component.
getRoot method and the container
should be used to add any child components to the window.
| 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 | |
LwWindow()
Constructs the window component with empty title. |
|
LwWindow(java.lang.String s)
Constructs the window component with the specified title. |
|
| Method Summary | |
void |
actionPerformed(LwActionEvent e)
Invoked when an action event occured. |
boolean |
catchInput(LwComponent c)
Checks if input events for the specified child component should be caught. |
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. |
LwContainer |
getRoot()
Gets the root container. |
java.lang.String |
getTitle()
Gets the window title. |
LwComponent |
getTitlePanel()
|
void |
hideOnClose(boolean b)
Sets the specified reaction to the close button pressing. |
boolean |
isHideOnClose()
Tests if the close window button will hide the window. |
boolean |
isSizeable()
Tests if the window component is sizeable. |
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 |
setCaptionColor(boolean state,
java.awt.Color c)
Sets the specified color that will be used as background color of the window caption for the specified window state. |
void |
setIcon(LwComponent i)
Sets the specified component as the window icon. |
void |
setSizeable(boolean b)
Enables sizing of the window. |
void |
setTitle(java.lang.String s)
Sets the specified title. |
void |
startDragged(LwMouseMotionEvent e)
Invoked when the mouse starts dragged. |
void |
winActivated(LwWinEvent e)
Invoked when the light weight window component has been activated. |
void |
winClosed(LwWinEvent e)
Invoked when the light weight window component has been closed. |
void |
winDeactivated(LwWinEvent e)
Invoked when the light weight window component has been deactivated. |
void |
winOpened(LwWinEvent e)
Invoked when the light weight window component has been opened. |
| 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 LwWindow()
public LwWindow(java.lang.String s)
s - the specified title.| Method Detail |
public void setTitle(java.lang.String s)
s - the specified title.public java.lang.String getTitle()
public void setIcon(LwComponent i)
i - the specified component.
public void setCaptionColor(boolean state,
java.awt.Color c)
state - the specified window state. true value correspond to
active window state and false value correspond to non-active window state.c - the specified color.public boolean isHideOnClose()
true if the close button will hide the window component;
otherwise false.public void hideOnClose(boolean b)
b - the specified reaction. If the the argumen is true
than the window will close by pressing the close button.public boolean isSizeable()
true if the window component can be sized;
otherwise false.public void setSizeable(boolean b)
b - if the argument is true than the window is sizeable;
otherwise false.public LwContainer getRoot()
public void startDragged(LwMouseMotionEvent e)
LwMouseMotionListenerstartDragged 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 endDragged(LwMouseMotionEvent e)
LwMouseMotionListenerendDragged 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 void winOpened(LwWinEvent e)
LwWinListenerwinOpened in interface LwWinListenerorg.zaval.lw.event.LwWinListenere - the specified window event.public void winClosed(LwWinEvent e)
LwWinListenerwinClosed in interface LwWinListenerorg.zaval.lw.event.LwWinListenere - the specified window event.public void winActivated(LwWinEvent e)
LwWinListenerwinActivated in interface LwWinListenerorg.zaval.lw.event.LwWinListenere - the specified window event.public void winDeactivated(LwWinEvent e)
LwWinListenerwinDeactivated in interface LwWinListenerorg.zaval.lw.event.LwWinListenere - the specified window event.public void actionPerformed(LwActionEvent e)
LwActionListeneractionPerformed in interface LwActionListenerorg.zaval.lw.event.LwActionListenere - the specified action 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 boolean catchInput(LwComponent c)
LwCompositecatchInput in interface LwCompositeorg.zaval.lw.LwCompositechild - the specified child component.true if input events for the child component should be caught by this
component; false otherwise.public LwComponent getTitlePanel()
protected LwLayout getDefaultLayout()
LwPanelgetDefaultLayout in class LwPanelorg.zaval.lw.LwPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||