|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.meta.swing.AbstractPropertyUI
public abstract class AbstractPropertyUI
Base implementation of the MetaPropertyUI interface. Provides some default behavior to make creating MetaPropertyUI implementations easier.
Constructor Summary | |
---|---|
AbstractPropertyUI()
|
Method Summary | |
---|---|
protected PropertyMutator |
getPropertyMutator()
Provides subclasses access to the PropertyMutator. |
abstract 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. |
boolean |
isLabeled()
Returns true if the UI component provides its own label. |
boolean |
isSingleColumn()
Returns true if the UI component fits the standard Label:Component display method. |
protected void |
propertyChanged(java.beans.PropertyChangeEvent event)
Called when the value contained in the mutator changes. |
void |
release()
Releases any listeners or resources associated with this MetaPropertyUI. |
protected void |
releaseComponent()
Implemented by subclasses to release any component-related resources. |
protected void |
resetComponentValue()
Called to set the component value to a default state. |
protected abstract void |
setComponentValue(java.lang.Object value)
Called to set the current value displayed in the component. |
void |
setPropertyMutator(PropertyMutator mutator)
Sets this MetaPropertyUI instance to reflect value of the specified property mutator. |
protected void |
setPropertyValue(java.lang.Object value)
Called to set the current property value. |
protected boolean |
setupToolTipText(PropertyMutator mutator,
boolean apply)
Called to setup the tooltip text when the mutator is set. |
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 AbstractPropertyUI()
Method Detail |
---|
public void initializeView(MetaPropertyContext viewContext)
initializeView
in interface MetaPropertyUI
protected void terminateView()
public MetaPropertyContext getViewContext()
getViewContext
in interface MetaPropertyUI
public void setPropertyMutator(PropertyMutator mutator)
setPropertyMutator
in interface MetaPropertyUI
protected PropertyMutator getPropertyMutator()
protected boolean setupToolTipText(PropertyMutator mutator, boolean apply)
protected void setPropertyValue(java.lang.Object value)
protected abstract void setComponentValue(java.lang.Object value)
protected void resetComponentValue()
public boolean isSingleColumn()
isSingleColumn
in interface MetaPropertyUI
public boolean isLabeled()
isLabeled
in interface MetaPropertyUI
public abstract java.awt.Component getUIComponent()
getUIComponent
in interface MetaPropertyUI
protected void propertyChanged(java.beans.PropertyChangeEvent event)
protected void releaseComponent()
public void release()
release
in interface MetaPropertyUI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |