|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JScrollPane PIRL.Viewers.Value_Pane
public class Value_Pane
A Value_Pane provides a view of an array Value.
The display uses a JTree to represent the array of Values. Any Value
in the array that is itself an array may be expanded to display its
contents. Each Value is shown as the String provided by the Value's
toString
method.
This Swing GUI can be employed whenever the display of a Value array
is needed by an application. A main
method is provided
using this class as an application for viewing the array Values from
a file containing PVL statements.
Value
,
JTree
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JScrollPane |
---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static String |
Default_Line_Style
Default tree line style. |
Fields inherited from class javax.swing.JScrollPane |
---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
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 | |
---|---|
Value_Pane(Value value)
Creates a Value_Pane from the specified Value. |
|
Value_Pane(Value value,
Parameter_Pane enclosing_parameter_pane)
Creates a Value_Pane from the specified Value. |
Method Summary | |
---|---|
String |
Line_Style()
Gets the "JTree.lineStyle" property currently being used. |
void |
Line_Style(String style)
Sets the "JTree.lineStyle" property to the specified style. |
Value_Pane |
Reload(Value value)
Deprecated. Replaced by Value(Value) |
JTree |
Tree()
Gets the JTree being used to represent the Value in the display. |
Value |
Value()
Gets the Value being viewed. |
Value_Pane |
Value(Value value)
Sets the Value to be viewed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String Default_Line_Style
Constructor Detail |
---|
public Value_Pane(Value value)
value
- The Value to be displayed.
PVL_Exception
- If the Value is not an ARRAY
type. The message is BAD_ARGUMENT
.public Value_Pane(Value value, Parameter_Pane enclosing_parameter_pane)
value
- The Value to be displayed.enclosing_parameter_pane
- The parent Parameter_Pane
that interacts with this Value_Pane. May be null if there
is no associated Parameter_Pane.
PVL_Exception
- If the Value is not an ARRAY
type. The message is BAD_ARGUMENT
.Method Detail |
---|
public Value Value()
public Value_Pane Value(Value value)
value
- The new Value to View.
public Value_Pane Reload(Value value)
Value(Value)
value
- The new Value to View.
public String Line_Style()
public void Line_Style(String style)
style
- The String describing the style to use.JComponent.putClientProperty(Object, Object)
public JTree Tree()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |