org.progeeks.meta.swing.editor
Class LongStringEditor

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

public class LongStringEditor
extends AbstractPropertyEditor
implements MetaPropertyRenderer

An editor implementation for editing long string values. It uses a multi-line JEditPane for the job.

Version:
$Revision: 1.8 $
Author:
Paul Speed

Constructor Summary
LongStringEditor()
           
LongStringEditor(boolean readOnly)
           
 
Method Summary
 java.awt.Component getUIComponent()
          Returns the component that allows modification of the associated property mutator.
 boolean isAutoScroll()
           
 boolean isSingleColumn()
          Returns false since editor pane should be a full-width control.
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.
 void setAutoScroll(boolean f)
          Set to true for the component to automatically scroll to the end of the text whenever the value changes.
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.AbstractPropertyEditor
flushEdits
 
Methods inherited from class org.progeeks.meta.swing.AbstractPropertyUI
getPropertyMutator, getViewContext, initializeView, isLabeled, propertyChanged, release, setPropertyMutator, 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, initializeView, isLabeled, release, setPropertyMutator
 

Constructor Detail

LongStringEditor

public LongStringEditor()

LongStringEditor

public LongStringEditor(boolean readOnly)
Method Detail

setAutoScroll

public void setAutoScroll(boolean f)
Set to true for the component to automatically scroll to the end of the text whenever the value changes.


isAutoScroll

public boolean isAutoScroll()

isSingleColumn

public boolean isSingleColumn()
Returns false since editor pane should be a full-width control.

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

getUIComponent

public java.awt.Component getUIComponent()
Returns the component that allows modification of the associated property mutator.

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

releaseComponent

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

Specified by:
releaseComponent in class AbstractPropertyEditor

setComponentValue

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

Specified by:
setComponentValue in class AbstractPropertyUI

resetComponentValue

protected void resetComponentValue()
Called to set the component value to a default state. The default implementation calls setComponentValue(null).

Overrides:
resetComponentValue in class AbstractPropertyUI


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