| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Panel
echopoint.Panel
echopoint.ScrollablePanel
echopoint.DialogPanel
net.sf.jzeno.echo.components.Dialog
public class Dialog
Base class for all dialogs.
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from interface echopoint.positionable.ScrollableContainer | 
|---|
ScrollableContainer.NestedStyleInfo | 
| Nested classes/interfaces inherited from interface echopoint.positionable.MouseCursorable | 
|---|
MouseCursorable.NestedStyleInfo | 
| Field Summary | 
|---|
| Fields inherited from class echopoint.DialogPanel | 
|---|
ACTION_CLOSE, defaultBackground, defaultTitleBarBackground, defaultTitleBarFont, defaultTitleBarForeground, DITHERING_CHANGED_PROPERTY, DRAG_WINDOW_USED_CHANGED_PROPERTY, TITLEBAR_CHANGED_PROPERTY, ZINDEX_RANGE | 
| Fields inherited from class echopoint.ScrollablePanel | 
|---|
DEFAULT_POSITONABLE_POLICY, DEFAULT_SCROLLBAR_POLICY | 
| Fields inherited from class nextapp.echo.Panel | 
|---|
DEFAULT_INSETS, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, INSETS_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_INSETS, STYLE_VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_CHANGED_PROPERTY | 
| Fields inherited from interface echopoint.positionable.ScrollableContainer | 
|---|
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, INSETS_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_INSETS, STYLE_VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_CHANGED_PROPERTY | 
| Fields inherited from interface echopoint.positionable.Scrollable | 
|---|
HEIGHT_CHANGED_PROPERTY, SCROLL_BAR_X_CHANGED_PROPERTY, SCROLL_BAR_Y_CHANGED_PROPERTY, SCROLLBAR_POLICY_CHANGED_PROPERTY, SCROLLBARS_ALWAYS, SCROLLBARS_AUTO, SCROLLBARS_CLIPHIDE, SCROLLBARS_NEVER, STYLE_HEIGHT, STYLE_SCROLL_BAR_POLICY, STYLE_WIDTH, UNDEFINED, undefinedSymbolic, WIDTH_CHANGED_PROPERTY | 
| Fields inherited from interface echopoint.positionable.Positionable | 
|---|
POSITION_CHANGED_PROPERTY, POSITIONING_ABSOLUTE, POSITIONING_FLOW, POSITIONING_RELATIVE, positioningSymbolics, STYLE_BOTTOM, STYLE_LEFT, STYLE_POSITIONING, STYLE_RIGHT, STYLE_TOP, STYLE_ZINDEX, UNDEFINED, undefinedSymbolic | 
| Fields inherited from interface echopoint.positionable.Clippable | 
|---|
CLIP_RECT_CHANGED_PROPERTY, STYLE_CLIP_RECT | 
| Fields inherited from interface echopoint.layout.LayoutManageable | 
|---|
LAYOUT_MANAGED_CHANGED_PROPERTY | 
| Fields inherited from interface echopoint.positionable.MouseCursorable | 
|---|
borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI | 
| Constructor Summary | |
|---|---|
Dialog()
 | 
|
Dialog(java.lang.Class beanClass,
       java.lang.String property,
       java.lang.String constructionHints)
 | 
|
| Method Summary | |
|---|---|
 void | 
add(Component c)
Adds a Component to the Panel
  
 This method then informs any LayoutManager that is present. | 
 void | 
add(Component c,
    int index)
Adds a Component to the Panel at 
 the specified index
  
 This method then informs any LayoutManager that is present. | 
 DynaGrid.Cell | 
add(Component comp,
    int verticalAlignment,
    int horizontalAlignment)
 | 
 void | 
add(Component comp,
    java.lang.Object constraints)
Adds a Component to the Panel at 
 the end of the list. | 
 void | 
add(Component comp,
    java.lang.Object constraints,
    int index)
Adds a Component to the Panel at 
 the specified index. | 
 DynaGrid.Cell | 
add(Component comp,
    java.lang.String cellConstructionHints)
 | 
 DynaGrid.Cell | 
addCentered(Component component)
 | 
 DynaGrid.Cell | 
addCentered(Component component,
            java.lang.String cellConstructionHints)
 | 
 DynaGrid.Cell | 
addLeft(Component component)
 | 
 DynaGrid.Cell | 
addLeft(Component component,
        java.lang.String cellConstructionHints)
 | 
 DynaGrid.Cell | 
addRight(Component component)
 | 
 DynaGrid.Cell | 
addRight(Component component,
         java.lang.String cellConstructionHints)
 | 
 void | 
addValidator(Validator validator)
Add extra validators to this component.  | 
 void | 
applyStyle(Style style)
Applies the provided style to the component.  | 
 void | 
close()
Closes the dialog.  | 
protected  void | 
fireActionEvent()
 | 
protected  void | 
fireActionEvent(ActionEvent e)
 | 
protected  void | 
fireActionEvent(java.lang.String actionCommand)
 | 
 java.lang.String | 
getActionCommand()
 | 
 java.lang.Object | 
getBean()
Retrieve the root bean this editor is bound to.  | 
 java.lang.Class | 
getBeanClass()
Determine the type of bean we are bound to.  | 
 Decorator | 
getDecorator()
Gets the decorator, if any is configured.  | 
 java.lang.Object | 
getNullObject()
 | 
 java.lang.String | 
getProperty()
Retrieve the property path to bind to on the domain model cluster.  | 
 java.lang.String | 
getTitle()
 | 
 java.util.List | 
getValidationErrors()
Retrieves a list of currently pending validation errors on this component.  | 
 java.util.List | 
getValidators()
Retrieve the list of active validators on this component.  | 
 java.lang.Object | 
getValue()
Retrieve the property value from the domain model cluster.  | 
 boolean | 
isAllowLineWrap()
 | 
 boolean | 
isMarkedInvalid()
 | 
 boolean | 
isReadOnly()
 | 
 boolean | 
isRequired()
Query if the editor is required to be filled in.  | 
 boolean | 
isValid()
Check if this component contains valid user input.  | 
 void | 
markInvalid()
Marks the component as invalid.  | 
 void | 
markValid()
Marks the component as valid (remove error marking)  | 
 void | 
preRender()
Make changes to the visual representation of this component before Echo starts rendering the component.  | 
 void | 
rebind()
 | 
 void | 
removeValidator(Validator validator)
Remove an existing validator from this component.  | 
 void | 
setActionCommand(java.lang.String command)
 | 
 void | 
setAllowLineWrap(boolean allowLineWrap)
 | 
 void | 
setBean(java.lang.Object bean)
sets the root bean for property-binding.  | 
 void | 
setBeanClass(java.lang.Class beanClass)
Change the type of model bean this property component will be bound to.  | 
 void | 
setDecorator(Decorator decorator)
Sets the decorator.  | 
 void | 
setNullObject(java.lang.Object nullObject)
 | 
 void | 
setProperty(java.lang.String property)
Set the property(path) to bind to on the domain model cluster.  | 
 void | 
setReadOnly(boolean readOnly)
Mark this component as read-only.  | 
 void | 
setRequired(boolean required)
Determine if the editor is required to be filled in.  | 
 void | 
setTitle(java.lang.String title)
 | 
 void | 
setValue(java.lang.Object value)
Writes the supplied data into the property we are bound to.  | 
 void | 
setVisible(boolean value)
Sets the component visible or invisible.  | 
| Methods inherited from class echopoint.DialogPanel | 
|---|
actionPerformed, addDialogListener, getTitleBar, getzIndex, isBackgroundDithered, isDragWindowUsed, removeDialogListener, set, setBackgroundDithered, setDragWindowUsed, setTitleBar, setzIndex | 
| Methods inherited from class echopoint.ScrollablePanel | 
|---|
clearPositioning, getBottom, getClipRect, getHeight, getLeft, getPositioning, getRight, getScreenHeight, getScreenWidth, getScrollBarPolicy, getScrollBarX, getScrollBarY, getTop, getWidth, isPositioned, setBottom, setClipRect, setClipRect, setClipRect, setHeight, setLeft, setPositioning, setRight, setScrollBarPolicy, setScrollBarX, setScrollBarY, setTop, setWidth | 
| Methods inherited from class nextapp.echo.Panel | 
|---|
getHorizontalAlignment, getInsets, getVerticalAlignment, setHorizontalAlignment, setInsets, setVerticalAlignment | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface echopoint.positionable.ScrollableContainer | 
|---|
getHorizontalAlignment, getInsets, getVerticalAlignment, setHorizontalAlignment, setInsets, setVerticalAlignment | 
| Methods inherited from interface echopoint.layout.LayoutManageable | 
|---|
getLayoutManager, remove, remove, setLayoutManager | 
| Constructor Detail | 
|---|
public Dialog()
public Dialog(java.lang.Class beanClass,
              java.lang.String property,
              java.lang.String constructionHints)
| Method Detail | 
|---|
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void close()
DialogPanelThis helper method removes the dialog from its parent, if it has one, and hence the dialog will not longer appear.
close in class DialogPanelpublic void setVisible(boolean value)
Component
setVisible in interface ComponentsetVisible in class AbstractComponentvalue - The new visibility state of the component.public boolean isAllowLineWrap()
public void setAllowLineWrap(boolean allowLineWrap)
public void add(Component c,
                int index)
PanelComponent to the Panel at 
 the specified index
 This method then informs any LayoutManager that is present.
add in interface LayoutManageableadd in interface Componentadd in class Panelc - The child component to add.index - The index at which to add the child component, or -1 to add
            the component at the end.
public void add(Component comp,
                java.lang.Object constraints,
                int index)
PanelComponent to the Panel at 
 the specified index.
 This method then informs any LayoutManager that is present.
add in interface LayoutManageableadd in class Panel
public void add(Component comp,
                java.lang.Object constraints)
PanelComponent to the Panel at 
 the end of the list.
 This method then informs any LayoutManager that is present.
add in interface LayoutManageableadd in class Panelpublic void add(Component c)
PanelComponent to the Panel
 This method then informs any LayoutManager that is present.
add in interface LayoutManageableadd in interface Componentadd in class Panelc - The child component to add.
public DynaGrid.Cell add(Component comp,
                         int verticalAlignment,
                         int horizontalAlignment)
public DynaGrid.Cell add(Component comp,
                         java.lang.String cellConstructionHints)
public DynaGrid.Cell addCentered(Component component)
public DynaGrid.Cell addCentered(Component component,
                                 java.lang.String cellConstructionHints)
public DynaGrid.Cell addLeft(Component component)
public DynaGrid.Cell addLeft(Component component,
                             java.lang.String cellConstructionHints)
public DynaGrid.Cell addRight(Component component)
public DynaGrid.Cell addRight(Component component,
                              java.lang.String cellConstructionHints)
public void applyStyle(Style style)
ScrollablePanelnextapp.echo.Component
 style names can be used as well.
applyStyle in interface BorderableapplyStyle in interface ClippableapplyStyle in interface MouseCursorableapplyStyle in interface PositionableapplyStyle in interface ScrollableapplyStyle in interface ComponentapplyStyle in class ScrollablePanelstyle - The style object from which to retrieve properties for this
            Component.Borderable.applyStyle(nextapp.echo.Style)public java.lang.String getActionCommand()
getActionCommand in interface EventSourcepublic void setActionCommand(java.lang.String command)
setActionCommand in interface EventSourceprotected void fireActionEvent(java.lang.String actionCommand)
protected void fireActionEvent()
protected void fireActionEvent(ActionEvent e)
public void setBean(java.lang.Object bean)
PropertyComponentsets the root bean for property-binding.
setBean in interface PropertyComponentpublic java.lang.Class getBeanClass()
PropertyComponentDetermine the type of bean we are bound to.
During the lifecycle of a property component, this may NOT change ! In other words, if this component has been bound to, let's say, an Address object, this component must at all times remain bound to Address components ! (It may ofcourse change the specific instance to which it is bound, by calling setBean.)
getBeanClass in interface PropertyComponentpublic java.lang.String getProperty()
PropertyComponentRetrieve the property path to bind to on the domain model cluster.
getProperty in interface PropertyComponentpublic void setProperty(java.lang.String property)
PropertyComponentSet the property(path) to bind to on the domain model cluster.
setProperty in interface PropertyComponentpublic java.lang.Object getBean()
PropertyComponentRetrieve the root bean this editor is bound to.
getBean in interface PropertyComponentpublic Decorator getDecorator()
PropertyComponentGets the decorator, if any is configured.
getDecorator in interface PropertyComponentpublic java.lang.Object getValue()
PropertyComponentRetrieve the property value from the domain model cluster.
getValue in interface PropertyComponentpublic boolean isRequired()
PropertyComponentQuery if the editor is required to be filled in.
isRequired in interface PropertyComponentpublic final boolean isValid()
PropertyComponent
 Check if this component contains valid user input. In itself this
 operation will not mark the component in error. In order to apply error
 marking on invalid components you should use
 EchoSupport.doValidationRecursively(Component).
 
isValid in interface PropertyComponentpublic void setDecorator(Decorator decorator)
PropertyComponentSets the decorator.
setDecorator in interface PropertyComponentpublic void setRequired(boolean required)
PropertyComponentDetermine if the editor is required to be filled in.
setRequired in interface PropertyComponentpublic void setValue(java.lang.Object value)
PropertyComponentWrites the supplied data into the property we are bound to.
setValue in interface PropertyComponentpublic void setBeanClass(java.lang.Class beanClass)
PropertyComponentChange the type of model bean this property component will be bound to.
setBeanClass in interface PropertyComponentpublic java.lang.Object getNullObject()
public void setNullObject(java.lang.Object nullObject)
public final java.util.List getValidationErrors()
PropertyComponentRetrieves a list of currently pending validation errors on this component.
getValidationErrors in interface PropertyComponentpublic void addValidator(Validator validator)
PropertyComponentAdd extra validators to this component.
addValidator in interface PropertyComponentpublic void removeValidator(Validator validator)
PropertyComponentRemove an existing validator from this component.
removeValidator in interface PropertyComponentpublic java.util.List getValidators()
PropertyComponentRetrieve the list of active validators on this component.
getValidators in interface PropertyComponentpublic void rebind()
public boolean isReadOnly()
isReadOnly in interface PropertyComponentpublic void setReadOnly(boolean readOnly)
PropertyComponentMark this component as read-only.
setReadOnly in interface PropertyComponentpublic void preRender()
PropertyComponentMake changes to the visual representation of this component before Echo starts rendering the component.
Do not modify any bound javabeans in this method, as the changes to these will not be reflected properly on the screen.
preRender in interface PropertyComponentpublic final void markInvalid()
PropertyComponentMarks the component as invalid. Typically puts a colored border around it to indicate the error.
markInvalid in interface PropertyComponentpublic void markValid()
PropertyComponentMarks the component as valid (remove error marking)
markValid in interface PropertyComponentpublic boolean isMarkedInvalid()
isMarkedInvalid in interface PropertyComponent
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||