org.progeeks.meta.swing
Interface MetaPropertyUI

All Known Subinterfaces:
MetaPropertyEditor, MetaPropertyRenderer
All Known Implementing Classes:
AbstractMetaObjectUI, AbstractPropertyEditor, AbstractPropertyUI, AbstractSpinnerEditor, BooleanEditor, ColorEditor, ColorRenderer, ComboEnumeratedTypeEditor, ContainerEditor, DefaultPropertyEditor, DefaultPropertyRenderer, DoubleEditor, FileEditor, FileListEditor, FloatEditor, FontEditor, FormatPropertyRenderer, IntegerEditor, ListEditor, LongStringEditor, MetaObjectTabbedPaneUI, MetaTabbedPanelUI, MultiColumnPanelUI, SimpleDateEditor, SimpleDateTimeEditor, SpinnerEnumeratedTypeEditor, TableUI

public interface MetaPropertyUI

A component that provides rendering or editing support for an instance of a specific type of property.

Version:
$Revision: 1.3 $
Author:
Paul Speed

Method Summary
 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.
 void release()
          Releases any listeners or resources associated with this MetaPropertyUI.
 void setPropertyMutator(PropertyMutator mutator)
          Sets this MetaPropertyUI instance to reflect value of the specified property mutator.
 

Method Detail

initializeView

void initializeView(MetaPropertyContext viewContext)
Initializes this MetaPropertyUI as a participant in the specified MetaPropertyContext's hierarchy. A later call to release() will terminate this relationship.


getViewContext

MetaPropertyContext getViewContext()
Returns the MetaPropertyContext for which this MetaPropertyUI is a participant.


setPropertyMutator

void setPropertyMutator(PropertyMutator mutator)
Sets this MetaPropertyUI instance to reflect value of the specified property mutator. If any previously associated property mutator exists, it will be replaced and any internal renderer data structures will be reset accordingly. Any component that was returned from a getUIComponent() call will be reused.


isSingleColumn

boolean isSingleColumn()
Returns true if the UI component fits the standard Label:Component display method. Otherwise, the container will use a different layout strategy for this control.


isLabeled

boolean isLabeled()
Returns true if the UI component provides its own label.


getUIComponent

java.awt.Component getUIComponent()
Returns the component that renders the associated property mutator's value.


release

void release()
Releases any listeners or resources associated with this MetaPropertyUI.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.