|
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.LySwingDialog
public class LySwingDialog
This class implements the Dialog object (as described in the dtd) for swing viewer.
A dialog window is, generally, linked to a main window of an application. Unlike the main window, it contains neither a menu, nor a message bar. Its display can be modal (blocking) or not. This type of window is generally used to allow a user to interact with an application: input request, presentation of the results, warning messages, questions, etc.
LyDialog
Nested Class Summary | |
---|---|
class |
LySwingDialog._LyDialogAdapter
Handle the closing events of this dialog. |
class |
LySwingDialog._LyWindowSizeListener
Handle the resizing of this dialog and force its minimum size. |
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
MAX_SIZE_RATIO
Maximum ratio, in percent, of the window between its size (with / height) and the screen. |
static int |
SCROLLBAR_WIDTH
Default reserved width for scrollbars, in pixels. |
Fields inherited from class leon.view.win.swing.LySwingView |
---|
WINDOWS_TASKBAR_HEIGHT |
Constructor Summary | |
---|---|
LySwingDialog(LyDialog dialog)
Class constructor of a Dialog window object for the Swing target. |
Method Summary | |
---|---|
void |
configureDefaultButton()
Sets the default button. |
java.awt.Dialog |
createDialog()
Creates a new Dialog instance for the view and initializes it. |
void |
free()
(non-Javadoc). |
java.awt.Component |
getComponent()
(non-Javadoc). |
int |
getMaxSizeRatio()
Maximum size ratio of the view on the screen in %. |
void |
initialize()
(non-Javadoc). |
boolean |
isResizable()
(non-Javadoc). |
void |
repack()
Sets all the components of this dialog to their preferred size and readjust the size of the dialog. |
void |
setArea(LyArea area)
Sets sub-component area. |
void |
setLabel(java.lang.String label)
Sets the title bar of the dialog. |
void |
setLocation(int x,
int y)
Accessor to the location. |
void |
setVisible(boolean status)
(non-Javadoc). |
void |
setWaiting(boolean status)
Sets the waiting status of this component. |
void |
setWaiting(boolean status,
boolean setCursor)
Sets the waiting status of this component. and the enabled state of the component. |
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, setContent, setSize |
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
public static int SCROLLBAR_WIDTH
Constructor Detail |
---|
public LySwingDialog(LyDialog dialog)
dialog
- a DIALOG component defined for every type of view targets. This dialog is
initialized and configured specificaly for the Swing view.Method Detail |
---|
public void initialize()
initialize
in class LySwingView
LySwingView.initialize()
public void free()
free
in interface LyGraphicalComponent
free
in interface LyFreeInterface
free
in class LySwingView
LyFreeInterface.free()
public void configureDefaultButton()
configureDefaultButton
in class LySwingView
public java.awt.Dialog createDialog()
public java.awt.Component getComponent()
LySwingObject
getComponent
in interface LySwingComponent
getComponent
in class LySwingObject
LySwingComponent.getComponent()
public void setWaiting(boolean status)
LySwingView
setWaiting
in interface LySetWaitingInterface
setWaiting
in class LySwingView
status
- the new status for this componentLySetWaitingInterface.setWaiting(boolean)
public void setWaiting(boolean status, boolean setCursor)
status
- sets the waiting property of the given component, false unsets it.setCursor
- sets the waiting image of the cursor
(LySwingViewManager.WAIT_CURSOR
or
LySwingViewManager.DEFAULT_CURSOR
)public void setLabel(java.lang.String label)
setLabel
in interface LyGraphicalDialog
setLabel
in interface LySetLabelInterface
label
- the new title bar labelLyGraphicalDialog.setLabel(String)
public boolean isResizable()
isResizable
in class LySwingView
LySwingView.isResizable()
public 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 setArea(LyArea area)
LyGraphicalDialog
setArea
in interface LyGraphicalDialog
area
- New value of areapublic 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 void setLocation(int x, int y)
setLocation
in interface LySetBoundsInterface
setLocation
in class LySwingView
LySetBoundsInterface.setLocation(int, int)
public int getMaxSizeRatio()
getMaxSizeRatio
in class LySwingView
LySwingView.getMaxSizeRatio()
public void repack()
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 |