## org.das2.util.StringSchemeEditor

Where a String holds a state, and an editor is provided to edit the state.

## getComponent

getComponent( ) → java.awt.Component

return the editor for the string

### Returns:

the editor for the string
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getLabel

getLabel( ) → String

return a label identifying the editor type.

### Returns:

a String
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getValue

getValue( ) → String

return the string represented by the GUI state

### Returns:

the string represented by the GUI state
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setContext

setContext( Object o ) → void

some clients of this code may provide a context for the string, so for example a preview could be created or units detected or null to clear the context. This method can be ignored, and the code should assume a context will be provided. This is typically the object containing the property.

### Parameters

o - an Object

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setValue

setValue( String v ) → void

set the current string value, representing a state.

### Parameters

v - the state

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]