|
|||||||||
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()
DialogPanel
This helper method removes the dialog from its parent, if it has one, and hence the dialog will not longer appear.
close
in class DialogPanel
public void setVisible(boolean value)
Component
setVisible
in interface Component
setVisible
in class AbstractComponent
value
- The new visibility state of the component.public boolean isAllowLineWrap()
public void setAllowLineWrap(boolean allowLineWrap)
public void add(Component c, int index)
Panel
Component
to the Panel
at
the specified index
This method then informs any LayoutManager that is present.
add
in interface LayoutManageable
add
in interface Component
add
in class Panel
c
- 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)
Panel
Component
to the Panel
at
the specified index.
This method then informs any LayoutManager that is present.
add
in interface LayoutManageable
add
in class Panel
public void add(Component comp, java.lang.Object constraints)
Panel
Component
to the Panel
at
the end of the list.
This method then informs any LayoutManager that is present.
add
in interface LayoutManageable
add
in class Panel
public void add(Component c)
Panel
Component
to the Panel
This method then informs any LayoutManager that is present.
add
in interface LayoutManageable
add
in interface Component
add
in class Panel
c
- 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)
ScrollablePanel
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface Borderable
applyStyle
in interface Clippable
applyStyle
in interface MouseCursorable
applyStyle
in interface Positionable
applyStyle
in interface Scrollable
applyStyle
in interface Component
applyStyle
in class ScrollablePanel
style
- The style object from which to retrieve properties for this
Component
.Borderable.applyStyle(nextapp.echo.Style)
public java.lang.String getActionCommand()
getActionCommand
in interface EventSource
public void setActionCommand(java.lang.String command)
setActionCommand
in interface EventSource
protected void fireActionEvent(java.lang.String actionCommand)
protected void fireActionEvent()
protected void fireActionEvent(ActionEvent e)
public void setBean(java.lang.Object bean)
PropertyComponent
sets the root bean for property-binding.
setBean
in interface PropertyComponent
public java.lang.Class getBeanClass()
PropertyComponent
Determine 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 PropertyComponent
public java.lang.String getProperty()
PropertyComponent
Retrieve the property path to bind to on the domain model cluster.
getProperty
in interface PropertyComponent
public void setProperty(java.lang.String property)
PropertyComponent
Set the property(path) to bind to on the domain model cluster.
setProperty
in interface PropertyComponent
public java.lang.Object getBean()
PropertyComponent
Retrieve the root bean this editor is bound to.
getBean
in interface PropertyComponent
public Decorator getDecorator()
PropertyComponent
Gets the decorator, if any is configured.
getDecorator
in interface PropertyComponent
public java.lang.Object getValue()
PropertyComponent
Retrieve the property value from the domain model cluster.
getValue
in interface PropertyComponent
public boolean isRequired()
PropertyComponent
Query if the editor is required to be filled in.
isRequired
in interface PropertyComponent
public 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 PropertyComponent
public void setDecorator(Decorator decorator)
PropertyComponent
Sets the decorator.
setDecorator
in interface PropertyComponent
public void setRequired(boolean required)
PropertyComponent
Determine if the editor is required to be filled in.
setRequired
in interface PropertyComponent
public void setValue(java.lang.Object value)
PropertyComponent
Writes the supplied data into the property we are bound to.
setValue
in interface PropertyComponent
public void setBeanClass(java.lang.Class beanClass)
PropertyComponent
Change the type of model bean this property component will be bound to.
setBeanClass
in interface PropertyComponent
public java.lang.Object getNullObject()
public void setNullObject(java.lang.Object nullObject)
public final java.util.List getValidationErrors()
PropertyComponent
Retrieves a list of currently pending validation errors on this component.
getValidationErrors
in interface PropertyComponent
public void addValidator(Validator validator)
PropertyComponent
Add extra validators to this component.
addValidator
in interface PropertyComponent
public void removeValidator(Validator validator)
PropertyComponent
Remove an existing validator from this component.
removeValidator
in interface PropertyComponent
public java.util.List getValidators()
PropertyComponent
Retrieve the list of active validators on this component.
getValidators
in interface PropertyComponent
public void rebind()
public boolean isReadOnly()
isReadOnly
in interface PropertyComponent
public void setReadOnly(boolean readOnly)
PropertyComponent
Mark this component as read-only.
setReadOnly
in interface PropertyComponent
public void preRender()
PropertyComponent
Make 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 PropertyComponent
public final void markInvalid()
PropertyComponent
Marks the component as invalid. Typically puts a colored border around it to indicate the error.
markInvalid
in interface PropertyComponent
public void markValid()
PropertyComponent
Marks the component as valid (remove error marking)
markValid
in interface PropertyComponent
public boolean isMarkedInvalid()
isMarkedInvalid
in interface PropertyComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |