|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.swing.AbstractMetaObjectUI
public abstract class AbstractMetaObjectUI
A component that allows rendering or editing a specific type of MetaObject.
Constructor Summary | |
---|---|
AbstractMetaObjectUI()
|
Method Summary | |
---|---|
void |
flushEdits()
Causes any edits in progress to be flushed to the mutator if possible. |
protected FactoryRegistry |
getFactories()
|
java.awt.Component |
getUIComponent()
Returns the component that renders the associated property mutator's value. |
MetaPropertyContext |
getViewContext()
Returns the MetaPropertyContext for which this MetaPropertyUI is a participant. |
void |
initializeView(MetaPropertyContext viewContext)
Initializes this MetaPropertyUI as a participant in the specified MetaPropertyContext's hierarchy. |
protected boolean |
isEditable()
Returns true if this UI is editable. |
boolean |
isLabeled()
Returns false as a hint that the returned component should be labeled by the container. |
boolean |
isSingleColumn()
Returns false as a hint that the returned component should be displayed differently. |
protected void |
propertyChanged()
|
void |
release()
Releases any listeners or resources associated with this MetaPropertyUI. |
protected void |
setComponent(java.awt.Component component)
Called to set the component. |
protected abstract void |
setComponentObject(java.awt.Component component,
MetaObject object)
Called to set the value currently displayed in the component. |
void |
setMetaObject(MetaObject object)
Sets this MetaObjectUI instance to reflect the value of the specified meta-object. |
protected void |
setObject(MetaObject object,
PropertyMutator mutator)
Sets the internal object information for this component. |
void |
setPropertyMutator(PropertyMutator mutator)
Sets this MetaPropertyUI instance to reflect value of the specified property mutator. |
protected void |
terminateView()
Called by the release method to remove any listeners that may have been registered with the view context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMetaObjectUI()
Method Detail |
---|
public void initializeView(MetaPropertyContext viewContext)
initializeView
in interface MetaObjectUI
initializeView
in interface MetaPropertyUI
protected void terminateView()
public MetaPropertyContext getViewContext()
getViewContext
in interface MetaObjectUI
getViewContext
in interface MetaPropertyUI
protected FactoryRegistry getFactories()
protected void setComponent(java.awt.Component component)
protected boolean isEditable()
protected abstract void setComponentObject(java.awt.Component component, MetaObject object)
public void setPropertyMutator(PropertyMutator mutator)
setPropertyMutator
in interface MetaPropertyUI
public void setMetaObject(MetaObject object)
setMetaObject
in interface MetaObjectUI
protected void setObject(MetaObject object, PropertyMutator mutator)
public boolean isSingleColumn()
isSingleColumn
in interface MetaPropertyUI
public boolean isLabeled()
isLabeled
in interface MetaPropertyUI
public void flushEdits()
flushEdits
in interface MetaPropertyEditor
public java.awt.Component getUIComponent()
getUIComponent
in interface MetaObjectUI
getUIComponent
in interface MetaPropertyUI
public void release()
release
in interface MetaObjectUI
release
in interface MetaPropertyUI
protected void propertyChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |