|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.ceryle.ui.graph.ValueManager
public class ValueManager
Extends JPanel as a container for ValuePanel
instances, selectable via a String identifier (generally a URI indicating
a datatype). Creation of the ValueManager will automatically create an
instance of the DatatypeValuePanel used to select from among the available
datatypes. This is in addition to the optionally-provided default ValuePanel
(generally, a StringValuePanel).
Note that currently, datatype registrations simply overwrite any previous registration on duplications. (This should probably throw an exception.)
ValuePanel,
FacetPanel,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected boolean |
m_editable
Indicates that editing features are enabled. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ValueManager(JPanel parent,
ValuePanel defaultPanel)
Constructor for a ValueManager. |
|
| Method Summary | |
|---|---|
void |
addValuePanel(ValuePanel vp)
Adds the ValuePanel to this ValueManager. |
void |
clear()
Clears the value of the current ValuePanel's content. |
String |
getID()
Returns the datatype identifier of the current ValuePanel. |
String |
getValue()
Returns the value of this ValueManager's content as a String. |
boolean |
isEditable()
Returns true if the current ValuePanel is editable. |
void |
removeValuePanel(ValuePanel vp)
Removes the ValuePanel from this ValueManager. |
void |
setEditable(boolean editable)
Sets the editable state of this ValueManager and any currently-stored ValuePanels. |
void |
setValue(Object value)
Sets the value of this ValueManager's content. |
void |
showType(String identifier)
Sets the displayed datatype using the identifier identifier for a specific ValuePanel. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_editable
| Constructor Detail |
|---|
public ValueManager(JPanel parent,
ValuePanel defaultPanel)
defaultPanel - optionally adds as default ValuePanel| Method Detail |
|---|
public void setEditable(boolean editable)
public boolean isEditable()
public void showType(String identifier)
public void addValuePanel(ValuePanel vp)
public void removeValuePanel(ValuePanel vp)
public final String getID()
public void clear()
public void setValue(Object value)
public String getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||