|
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
leon.view.win.swing.LySwingFrame
public class LySwingFrame
This class implements the Frame object (as described in the dtd) for swing viewer.
The root of an XML
file describing a complete Leonardi view is an element of main
window or dialog window type.
LyFrame
Nested Class Summary | |
---|---|
class |
LySwingFrame._LyWindowSizeListener
This class ensures that the minimum size of the dialog is correct. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
MAX_SIZE_RATIO
Maximum ratio in percent of the window between its size (width/height) and the screen. |
Fields inherited from class leon.view.win.swing.LySwingView |
---|
WINDOWS_TASKBAR_HEIGHT |
Constructor Summary | |
---|---|
LySwingFrame(LyFrame frame)
Class constructor of a frame object for the Swing target. |
Method Summary | |
---|---|
void |
configureDefaultButton()
Sets the default button. |
java.awt.Frame |
createFrame()
Creates the frame. |
void |
free()
Free this frame and all its sub-components. |
java.awt.Component |
getComponent()
(non-Javadoc). |
int |
getMaxSizeRatio()
Maximum size ratio of this frame on the screen (in %). |
void |
initialize()
(non-Javadoc). |
boolean |
isResizable()
(non-Javadoc). |
void |
registerWindowEvents()
Registers the opening and closing window events. |
void |
repack()
Sets all the components of this frame to their preferred size and readjust the size of the frame. |
void |
setArea(java.awt.Component area)
Sets the client area in the frame. |
void |
setContent()
Sets the content of this frame. |
void |
setIcon(java.awt.Image icon)
Sets the icon of the frame. |
void |
setLabel(java.lang.String label)
Sets the title bar of the frame. |
void |
setMenuBar(java.lang.Object menuBar)
Sets the menu bar in the frame. |
void |
setMessages(java.awt.Component messages)
Sets the message bar in the frame. |
void |
setMessages(LyMessages messages)
Sets sub-component messages. |
void |
setResizable(boolean resizable)
Allows the frame to be resizable or not. |
void |
setSize(int width,
int height)
Sets the width and height of this frame. |
void |
setVisible(boolean status)
(non-Javadoc). |
void |
setWaiting(boolean status)
Sets the waiting status of this frame. |
void |
snapshot(java.lang.String file)
(non-Javadoc). |
void |
updateMinimumSize(LyComponent child,
java.awt.Dimension d)
Updates the minimum size occupied by this component. |
Methods inherited from class leon.view.win.swing.LySwingView |
---|
actionPerformed, getLocation, getSize, getView, getWindow, isVisible, pack, resetContent, resetContent, setLocation |
Methods inherited from class leon.view.win.swing.LySwingObject |
---|
getBounds, getChildrenBounds, 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 MAX_SIZE_RATIO
Constructor Detail |
---|
public LySwingFrame(LyFrame frame)
frame
- a FRAME component defined for every type of view targets. The frame component is
initialized and configured.Method Detail |
---|
public void initialize()
initialize
in class LySwingView
LySwingView.initialize()
public void setContent()
setContent
in class LySwingView
LySwingView.setContent()
public void setMessages(LyMessages messages)
setMessages
in interface LyGraphicalFrame
messages
- New value of messagespublic java.awt.Component getComponent()
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void configureDefaultButton()
configureDefaultButton
in class LySwingView
public void registerWindowEvents()
public java.awt.Frame createFrame()
public void setMenuBar(java.lang.Object menuBar)
menuBar
- menu bar of the framepublic void setMessages(java.awt.Component messages)
messages
- message bar of the framepublic void setArea(java.awt.Component area)
area
- the component to setLySwingView.setArea(Component)
public void setWaiting(boolean status)
setWaiting
in interface LySetWaitingInterface
setWaiting
in class LySwingView
status
- the new status for this componentLySwingView.setWaiting(boolean)
public void repack()
public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalFrame
setLabel
in interface LySetLabelInterface
label
- New value of label.LySetLabelInterface.setLabel(String)
public boolean isResizable()
isResizable
in class LySwingView
LySwingView.isResizable()
public void setResizable(boolean resizable)
resizable
- set the resizable property of the framepublic void setIcon(java.awt.Image icon)
icon
- the icon to be displayed in minimized statepublic void setVisible(boolean status)
setVisible
in interface LySetVisibleInterface
setVisible
in class LySwingView
status
- new visibility status, if true the component will be shown, if false it will be
hidenLySetVisibleInterface.setVisible(boolean)
public void setSize(int width, int height)
setSize
in interface LySetBoundsInterface
setSize
in class LySwingView
width
- the new width of the windowheight
- the new height of the windowLySetBoundsInterface.setSize(int, int)
public void free()
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LySwingView
LySwingView.free()
public void updateMinimumSize(LyComponent child, java.awt.Dimension d)
child
- child component in this container. This parameter is not used in this
implementation.d
- minimum size to usepublic int getMaxSizeRatio()
getMaxSizeRatio
in class LySwingView
LySwingView.getMaxSizeRatio()
public void snapshot(java.lang.String file)
snapshot
in class LySwingView
file
- the file that will contain the snapshotLySwingView.snapshot(java.lang.String)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |