Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.progeeks.meta.swing
Class DefaultPropertyRenderer  view DefaultPropertyRenderer download DefaultPropertyRenderer.java

java.lang.Object
  extended byorg.progeeks.meta.swing.AbstractPropertyUI
      extended byorg.progeeks.meta.swing.DefaultPropertyRenderer
All Implemented Interfaces:
MetaPropertyRenderer, MetaPropertyUI
Direct Known Subclasses:
FormatPropertyRenderer

public class DefaultPropertyRenderer
extends AbstractPropertyUI
implements MetaPropertyRenderer

A default implementation of MetaPropertyRenderer that returns a JLabel with an etched border.

Version:
$Revision: 1.4 $

Nested Class Summary
 
Nested classes inherited from class org.progeeks.meta.swing.AbstractPropertyUI
 
Field Summary
private  javax.swing.JLabel component
           
 
Fields inherited from class org.progeeks.meta.swing.AbstractPropertyUI
 
Constructor Summary
DefaultPropertyRenderer()
           
 
Method Summary
protected  java.lang.String formatValue(java.lang.Object value)
          Formats the specified value and returns it as a string.
 java.awt.Component getUIComponent()
          Returns the component that renders the associated property mutator's value.
protected  void setComponentValue(java.lang.Object value)
          Called to set the current value displayed in the component.
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyUI
getPropertyMutator, isLabeled, isSingleColumn, propertyChanged, release, releaseComponent, resetComponentValue, setPropertyMutator, setPropertyValue
 
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
isLabeled, isSingleColumn, release, setPropertyMutator
 

Field Detail

component

private javax.swing.JLabel component
Constructor Detail

DefaultPropertyRenderer

public DefaultPropertyRenderer()
Method Detail

setComponentValue

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

Specified by:
setComponentValue in class AbstractPropertyUI

formatValue

protected java.lang.String formatValue(java.lang.Object value)
Formats the specified value and returns it as a string.


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