org.progeeks.meta.swing
Interface MetaObjectUI

All Known Implementing Classes:
AbstractMetaObjectUI, MetaTabbedPanelUI, MultiColumnPanelUI

public interface MetaObjectUI

A component that provides rendering or editing support for an instance of a specific MetaClass. This is a wrapper around a component that can be stuffed with a meta-object.

Version:
$Revision: 1.2 $
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 MetaObjectUI is a participant.
 void initializeView(MetaPropertyContext viewContext)
          Initializes this MetaPropertyUI as a participant in the specified MetaPropertyContext's hierarchy.
 void release()
          Releases any listeners or resources associated with this MetaObjectUI.
 void setMetaObject(MetaObject object)
          Sets this MetaObjectUI instance to reflect the value of the specified meta-object.
 

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 MetaObjectUI is a participant.


setMetaObject

void setMetaObject(MetaObject object)
Sets this MetaObjectUI instance to reflect the value of the specified meta-object. If any previously associated meta-object exists, it will be replaced and any internal data structures will be reset accordingly. Any component that was returned from a getUIComponent() call will be reused.


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 MetaObjectUI.



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