|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.graphic.LyGraphicalObject
leon.view.win.swing.LySwingObject
leon.view.win.swing.LySwingView
public abstract class LySwingView
This class implements the common behavior of the View object (as described in the dtd) for swing viewer.
LyView
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
WINDOWS_TASKBAR_HEIGHT
Deprecated. |
Constructor Summary | |
---|---|
LySwingView(LyView view)
Class constructor of a View object for the Swing target. |
Method Summary | |
---|---|
void |
actionPerformed(LyActionEvent actionEvent)
(non-Javadoc). |
abstract void |
configureDefaultButton()
Sets the default button. |
void |
free()
Free all resources used by this dialog view. |
int[] |
getLocation()
Gets the view window position in its parent component. |
int |
getMaxSizeRatio()
Maximum size ratio of the view on the screen, in %. |
int[] |
getSize()
Gets the current size of the view window. |
LyView |
getView()
Gets the view component. |
java.awt.Window |
getWindow()
Gets the window component. |
void |
initialize()
Initializes the view. |
abstract boolean |
isResizable()
Checks if window is resizable or not. |
boolean |
isVisible()
Checks if the view window component is visible or not. |
void |
pack()
Packs the current window content and repaints it. |
void |
resetContent()
(non-Javadoc). |
void |
resetContent(boolean full)
(non-Javadoc). |
void |
setContent()
Sets the content of this view and registers its event listeners. |
void |
setLocation(int x,
int y)
(non-Javadoc). |
void |
setSize(int width,
int height)
Sets the size of the view window at the specified width and height. |
abstract void |
setVisible(boolean status)
(non-Javadoc). |
abstract void |
setWaiting(boolean status)
Sets the waiting status of this component. |
abstract void |
snapshot(java.lang.String file)
Takes a snapshot of the current view. |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, getComponent, getDefaultFrame |
Methods inherited from class leon.view.graphic.LyGraphicalObject |
---|
expand, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.view.graphic.LyGraphicalComponent |
---|
getViewComponent |
Field Detail |
---|
public static final java.lang.String __VERSION
public static int WINDOWS_TASKBAR_HEIGHT
Constructor Detail |
---|
public LySwingView(LyView view)
view
- a Leonardi view defined for every type of view targets.Method Detail |
---|
public void initialize()
public final LyView getView()
public final java.awt.Window getWindow()
public void setContent()
public void setLocation(int x, int y)
setLocation
in interface LySetBoundsInterface
LySetBoundsInterface.setLocation(int, int)
public int[] getLocation()
getLocation
in interface LyGetBoundsInterface
null
in nonesetLocation(int, int)
,
LyGetBoundsInterface.getLocation()
public abstract boolean isResizable()
public void setSize(int width, int height)
_resized
attribute.
setSize
in interface LySetBoundsInterface
width
- the new width of the windowheight
- the new height of the windowgetSize()
,
LySetBoundsInterface.setSize(int, int)
public int[] getSize()
getSize
in interface LyGetBoundsInterface
null
if nonesetSize(int, int)
,
LyGetBoundsInterface.getSize()
public void resetContent()
resetContent
in interface LyResetContentInterface
LyResetContentInterface.resetContent()
public void resetContent(boolean full)
resetContent
in interface LyResetContentInterface
full
- indicates whether old components must be removed from graphical view.LyResetContentInterface.resetContent()
public void actionPerformed(LyActionEvent actionEvent)
actionPerformed
in interface LyActionListener
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)
public abstract void setVisible(boolean status)
setVisible
in interface LySetVisibleInterface
status
- new visibility status, if true the component will be shown, if false it will be
hidenLySetVisibleInterface.setVisible(boolean)
public boolean isVisible()
isVisible
in interface LyIsVisibleInterface
LySetVisibleInterface.setVisible(boolean)
public abstract void setWaiting(boolean status)
setWaiting
in interface LySetWaitingInterface
status
- the new status for this componentLySetWaitingInterface.setWaiting(boolean)
public void pack()
public abstract void configureDefaultButton()
public void free()
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LyGraphicalObject
LyGraphicalObject.free()
public int getMaxSizeRatio()
public abstract void snapshot(java.lang.String file)
file
- the file that will contain the snapshot
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |