|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.favabeans.views.PropertyEditorView
This is a self-contained component that displays (and, if
appropriate, edits) a PropertyEditor
object. This
component defines one bound Java Bean property
editingState
.
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
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 | |
protected |
PropertyEditorView(PropertyEditor editor)
|
Method Summary | |
static PropertyEditorView |
create(boolean writeable,
PropertyEditor editor)
This method creates a PropertyEditorView
appropriate to the supplied PropertyEditor object. |
protected abstract void |
doEditorValueChanged()
|
protected abstract void |
doEnabledStateChanged()
|
protected abstract void |
doGuiValueChanged()
|
PropertyEditingState |
getEditingState()
|
PropertyEditor |
getEditor()
|
boolean |
isEnabled()
|
void |
setEditingState(PropertyEditingState editingState)
|
void |
setEnabled(boolean enabled)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected PropertyEditorView(PropertyEditor editor)
Method Detail |
public static PropertyEditorView create(boolean writeable, PropertyEditor editor)
PropertyEditorView
appropriate to the supplied PropertyEditor
object.
The relevant parameters are:
PropertyEditor
.According to the specs, ProperyEditor
objects
have the following behaviors:
isPaintable()
.getTags()
and
getAsText()
.getAsText()
only.setValue()
with the right
kind of object is is always operational, and:
setAsText()
[and throws
exception if supplied text is not convertible to a
property value].supportsCustomEditor()
so can simply
instantiate the editor component.
writeable
- whether a writeable (editable)
PropertyEditorView
is desired; if
false
, a read-only one is returned.editor
- the PropertyEditor
object for which
to create a PropertyEditorView
.PropertyEditorView
as appropriate.protected abstract void doEditorValueChanged()
protected abstract void doGuiValueChanged()
protected abstract void doEnabledStateChanged()
public boolean isEnabled()
isEnabled
in class Component
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
public PropertyEditor getEditor()
public PropertyEditingState getEditingState()
public void setEditingState(PropertyEditingState editingState)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |