org.progeeks.meta.swing
Class MetaObjectTabbedPaneUI

java.lang.Object
  extended by org.progeeks.meta.swing.AbstractPropertyUI
      extended by org.progeeks.meta.swing.AbstractPropertyEditor
          extended by org.progeeks.meta.swing.MetaObjectTabbedPaneUI
All Implemented Interfaces:
MetaPropertyEditor, MetaPropertyRenderer, MetaPropertyUI

public class MetaObjectTabbedPaneUI
extends AbstractPropertyEditor
implements MetaPropertyRenderer

A component that uses a MetaObjectTabbedPane to render or edit a list of MetaObjects.

Version:
$Revision: 1.3 $
Author:
Paul Speed

Constructor Summary
MetaObjectTabbedPaneUI(boolean hasCloseButtons)
           
 
Method Summary
 java.awt.Component getUIComponent()
          Returns the component that renders the associated property mutator's value.
 void initializeView(MetaPropertyContext viewContext)
          Initializes this MetaPropertyUI as a participant in the specified MetaPropertyContext's hierarchy.
protected  void releaseComponent()
          Implemented by subclasses to release any component-related resources.
protected  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.
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyEditor
flushEdits
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyUI
getPropertyMutator, getViewContext, isLabeled, isSingleColumn, propertyChanged, release, resetComponentValue, setPropertyValue, setupToolTipText, terminateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.progeeks.meta.swing.MetaPropertyUI
getViewContext, isLabeled, isSingleColumn, release
 

Constructor Detail

MetaObjectTabbedPaneUI

public MetaObjectTabbedPaneUI(boolean hasCloseButtons)
Method Detail

initializeView

public void initializeView(MetaPropertyContext viewContext)
Description copied from class: AbstractPropertyUI
Initializes this MetaPropertyUI as a participant in the specified MetaPropertyContext's hierarchy. The default implementation just sets the internal MetaPropertyContext reference. Subclasses should rememeber to call the super.initializeView() method.

Specified by:
initializeView in interface MetaPropertyUI
Overrides:
initializeView in class AbstractPropertyUI

getUIComponent

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

Specified by:
getUIComponent in interface MetaPropertyUI
Specified by:
getUIComponent in class AbstractPropertyUI

setPropertyMutator

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

Specified by:
setPropertyMutator in interface MetaPropertyUI
Overrides:
setPropertyMutator in class AbstractPropertyUI

setComponentValue

protected void setComponentValue(java.lang.Object value)
Called to set the current value displayed in the component.

Specified by:
setComponentValue in class AbstractPropertyUI

releaseComponent

protected void releaseComponent()
Implemented by subclasses to release any component-related resources.

Specified by:
releaseComponent in class AbstractPropertyEditor


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