|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--org.objectweb.jac.aspects.gui.swing.Dialog
This dialog is used to ask the parameters values when a method is called on a viewed JAC object.
View
,
Serialized FormField Summary |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Dialog(View content,
Object parent,
String title,
String description)
Construct a dialog window. |
Method Summary | |
void |
actionPerformed(ActionEvent evt)
Implements what is done when a button is pressed (may be either OK or CANCEL). |
protected void |
addKeyAndContainerListenerRecursively(Component c)
Register as a KeyListener and ContainerListener on the component and its children recursively. |
void |
close(boolean validate)
Close this view. |
void |
componentAdded(ContainerEvent event)
|
void |
componentRemoved(ContainerEvent event)
|
boolean |
equalsView(String type,
Object[] parameters)
|
boolean |
equalsView(ViewIdentity view)
Tells if a view is the same as another one, ie it has the same type and parameters. |
View |
getContentView()
Returns the content view of the window |
DisplayContext |
getContext()
|
String |
getDescription()
Get the value of description. |
ViewFactory |
getFactory()
Gets the factory. |
String |
getLabel()
Gets the view's label (identifier). |
MethodItem |
getMessage()
Get the value of message. |
Object[] |
getParameters()
The parameters that were used to compile the view. |
View |
getParentView()
Get the value of parentView. |
View |
getRootView()
Gets the ancestor view whose parent is null |
String |
getStyle()
Gets the user-defined style for this view. |
String |
getType()
Gets the view type. |
Border |
getViewBorder()
Get the value of viewBorder. |
boolean |
isClosed()
Tells if this view has been closed by the GUI or the user. |
boolean |
isDescendantOf(View ancestor)
Tells wether this view has a given view in its ancestors |
void |
keyPressed(KeyEvent event)
|
void |
keyReleased(KeyEvent event)
|
void |
keyTyped(KeyEvent event)
|
protected void |
removeKeyAndContainerListenerRecursively(Component c)
Unregister as a KeyListener and ContainerListener on the component and its children recursively. |
void |
restoreContext()
Restore context attributes memorized at creation time |
void |
setContext(DisplayContext context)
Sets the display context for this view. |
void |
setDescription(String v)
Set the value of description. |
void |
setFactory(ViewFactory factory)
Sets the factory for this view (WEB, SWING or other supported factory). |
void |
setFocus(FieldItem field,
Object option)
Focus a field of an object's view. |
void |
setLabel(String label)
Sets the label (the identifier) of the view. |
void |
setMessage(MethodItem v)
Set the value of message. |
void |
setParameters(Object[] parameters)
Sets the parameters that were used to construct the view. |
void |
setParentView(View v)
Set the value of parentView. |
void |
setSize(Length width,
Length height)
Sets the preferred size for this view. |
void |
setStyle(String style)
Sets the view style. |
void |
setType(String type)
Set the view type. |
void |
setViewBorder(Border v)
Set the value of viewBorder. |
boolean |
waitForClose()
Waits until the dialog is closed or timeout iccurs. |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Dialog(View content, Object parent, String title, String description)
content
- the content of the dialogparent
- the parent window of the dialogdescription
- a text describing the dialog to the userMethod Detail |
public Border getViewBorder()
getViewBorder
in interface View
public void setViewBorder(Border v)
setViewBorder
in interface View
v
- Value to assign to viewBorder.public void setStyle(String style)
View
setStyle
in interface View
public String getStyle()
View
getStyle
in interface View
public MethodItem getMessage()
getMessage
in interface View
public String getDescription()
getDescription
in interface View
public void setDescription(String v)
setDescription
in interface View
v
- Value to assign to description.View.setMessage(MethodItem)
public View getParentView()
getParentView
in interface View
CompositeView
public void setParentView(View v)
setParentView
in interface View
v
- Value to assign to parentView.CompositeView
public View getRootView()
View
getRootView
in interface View
public boolean isDescendantOf(View ancestor)
View
isDescendantOf
in interface View
ancestor
- the ancestorpublic void setMessage(MethodItem v)
setMessage
in interface View
v
- Value to assign to message.View.setDescription(String)
public void setContext(DisplayContext context)
View
The display context contains the factory that is used for this view.
setContext
in interface View
public DisplayContext getContext()
getContext
in interface View
public void setFactory(ViewFactory factory)
View
setFactory
in interface View
public ViewFactory getFactory()
View
getFactory
in interface View
public void setLabel(String label)
View
setLabel
in interface View
label
- a string that identifies the viewpublic String getLabel()
View
getLabel
in interface View
public void setSize(Length width, Length height)
View
setSize
in interface View
width
- the preferred width. If null, the preferred width is not changed.height
- the preferred height. If null, the preferred height is not changed.public void setType(String type)
ViewIdentity
setType
in interface ViewIdentity
public String getType()
ViewIdentity
getType
in interface ViewIdentity
public void setParameters(Object[] parameters)
ViewIdentity
setParameters
in interface ViewIdentity
public Object[] getParameters()
ViewIdentity
getParameters
in interface ViewIdentity
public boolean equalsView(ViewIdentity view)
ViewIdentity
equalsView
in interface ViewIdentity
public boolean equalsView(String type, Object[] parameters)
equalsView
in interface ViewIdentity
public void close(boolean validate)
View
close
in interface View
validate
- wether to validate any value contained in editors.public boolean isClosed()
View
isClosed
in interface View
public void setFocus(FieldItem field, Object option)
View
setFocus
in interface View
field
- the field to focusoption
- an extra optionpublic boolean waitForClose()
DialogView
waitForClose
in interface DialogView
public View getContentView()
WindowView
getContentView
in interface WindowView
public void restoreContext()
DialogView
restoreContext
in interface DialogView
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
evt
- tell what button was pressedpublic void keyPressed(KeyEvent event)
keyPressed
in interface KeyListener
public void keyTyped(KeyEvent event)
keyTyped
in interface KeyListener
public void keyReleased(KeyEvent event)
keyReleased
in interface KeyListener
public void componentAdded(ContainerEvent event)
componentAdded
in interface ContainerListener
protected void addKeyAndContainerListenerRecursively(Component c)
c
- the componentpublic void componentRemoved(ContainerEvent event)
componentRemoved
in interface ContainerListener
protected void removeKeyAndContainerListenerRecursively(Component c)
c
- the component
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |