|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
dsto.dfc.swing.forms.AbstractFormEditorComponent
public abstract class AbstractFormEditorComponent
Abstract base class for JComponent-based FormEditor's.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected String |
description
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AbstractFormEditorComponent()
|
|
| Method Summary | |
|---|---|
void |
addFormEditorListener(FormEditorListener l)
|
void |
commitEdits()
Default implementation does nothing. |
void |
fireEditComitted()
Deprecated. Supports old typo, ise fireEditCommitted instead. |
void |
fireEditCommitRequested()
|
void |
fireEditCommitted()
|
Component |
getEditorComponent()
Get the component, if any, that acts as a UI for this editor. |
String |
getEditorDescription()
Get a short description of the value being edited for this editor (eg 'host name'). |
abstract Object |
getEditorValue()
Get the current value from the form editor. |
Class |
getPreferredValueType()
Default implementation: returns java.lang.Object to indicate no preferred type. |
abstract boolean |
isDirectEdit()
True if the editor directly edits the value passed in with setValue (). |
void |
removeFormEditorListener(FormEditorListener l)
|
void |
setEditorDescription(String newValue)
|
abstract void |
setEditorValue(Object value)
Sets the value to be displayed/edited by the form editor. |
void |
setObject(Object bean)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.beans.Customizer |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
protected String description
| Constructor Detail |
|---|
public AbstractFormEditorComponent()
| Method Detail |
|---|
public String getEditorDescription()
FormEditor
getEditorDescription in interface FormEditorpublic void setEditorDescription(String newValue)
public Class getPreferredValueType()
getPreferredValueType in interface FormEditorpublic abstract boolean isDirectEdit()
FormEditor
isDirectEdit in interface FormEditor
public abstract void setEditorValue(Object value)
throws IllegalFormatException
FormEditor
setEditorValue in interface FormEditorvalue - The value to display.
IllegalFormatException - if the value was not in the
correct format for display by this editor. The source specified
by the exception should be this FormEditor instance or a child.public abstract Object getEditorValue()
FormEditor
getEditorValue in interface FormEditor
public void commitEdits()
throws IllegalFormatException
commitEdits in interface FormEditorIllegalFormatException - if the commit failed because of
an illegal input or other error. The source specified by the
exception should be the FormEditor instance that caused the error
(ie either this editor or a child).public Component getEditorComponent()
FormEditor
getEditorComponent in interface FormEditorpublic void addFormEditorListener(FormEditorListener l)
addFormEditorListener in interface FormEditorpublic void removeFormEditorListener(FormEditorListener l)
removeFormEditorListener in interface FormEditorpublic void fireEditComitted()
public void fireEditCommitted()
public void fireEditCommitRequested()
public void setObject(Object bean)
setObject in interface Customizer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||