com.togethersoft.openapi.ide.inspector.util
Class DescriptionComponent

java.lang.Object
  |
  +--java.beans.FeatureDescriptor
        |
        +--com.togethersoft.openapi.ide.inspector.IdeInspectorComponent
              |
              +--com.togethersoft.openapi.ide.inspector.util.DescriptionComponent

public class DescriptionComponent
extends IdeInspectorComponent
implements UIComponentService

This class represents inspector component intended to edit javadoc for the selected RwiElement.
This component appears as a "Description" tab in the inspector.

Author:
TogetherSoft
Since: Together 4.0

Inner Class Summary
 private classDescriptionComponent.ModelPropertyNamesServiceImpl
           

Field Summary
 private final static FontFONT
           
 private final static FontFONT1
           
 private booleanisAnyKeyPressed
           
 private JTextAreamyEditorPane
           
 private StringmyName
           
 private StringmyOldValue
           
 private StringmyPropertyName
           
 private ModelPropertyNamesServiceImplmyPropertyNameService
           
 private RwiPropertyMapmyRwiPropertyMap
           
 private JScrollPanemyScrollPane
           

Constructor Summary
DescriptionComponent(RwiElement element)
          Constructs DescriptionComponent for the specified RwiElement.
DescriptionComponent(RwiPropertyMap propertyMap, String name, String propertyName)
           
DescriptionComponent(RwiElement element, String name, String propertyName)
          Constructs DescriptionComponent for the specified RwiElement
with specified name of component and custom property.

Method Summary
 ComponentgetUIComponent()
          Returns Swing component which represents this inspector component.
 private voidsetValue(String propertyValue)
           
 private voidstoreValue()
           
 voidupdate()
          Updates view of this component.

Methods inherited from class com.togethersoft.openapi.ide.inspector.IdeInspectorComponent
getService, setService

Methods inherited from class java.beans.FeatureDescriptor
getName, setName, getDisplayName, setDisplayName, isExpert, setExpert, isHidden, setHidden, isPreferred, setPreferred, getShortDescription, setShortDescription, setValue, getValue, attributeNames

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize

Field Detail

FONT

private final static Font FONT

FONT1

private final static Font FONT1

isAnyKeyPressed

private boolean isAnyKeyPressed

myEditorPane

private JTextArea myEditorPane

myName

private String myName

myOldValue

private String myOldValue

myPropertyName

private String myPropertyName

myPropertyNameService

private ModelPropertyNamesServiceImpl myPropertyNameService

myRwiPropertyMap

private RwiPropertyMap myRwiPropertyMap

myScrollPane

private JScrollPane myScrollPane
Constructor Detail

DescriptionComponent

public DescriptionComponent(RwiElement element)
Constructs DescriptionComponent for the specified RwiElement.
Parameters:
element Selected RwiElement

DescriptionComponent

public DescriptionComponent(RwiPropertyMap propertyMap, String name, String propertyName)

DescriptionComponent

public DescriptionComponent(RwiElement element, String name, String propertyName)
Constructs DescriptionComponent for the specified RwiElement
with specified name of component and custom property.
Parameters:
element Selected RwiElement
name Name of component
propertyName Name of property for displaying in component
Since:
Together 5.0
See Also:
RwiProperty
Method Detail

getUIComponent

public Component getUIComponent()
Returns Swing component which represents this inspector component.
Returns: Swing component which represents this inspector component

setValue

private void setValue(String propertyValue)

storeValue

private void storeValue()

update

public void update()
Updates view of this component. Called whenever description is changed (i.e. in the text editor).

Association Links

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class com.togethersoft.openapi.rwi.RwiPropertyMap

to Class javax.swing.JScrollPane

to Class javax.swing.JTextArea

to Class com.togethersoft.openapi.ide.inspector.util.DescriptionComponent.ModelPropertyNamesServiceImpl

to Class java.awt.Font

to Class java.awt.Font