|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--arlut.csd.JDataComponent.JValueObject
A client-side message object used to pass status updates from GUI components in the arlut.csd.JDataComponent package to their containers. JValueObject supports passing information about scalar and vector value change operations, as well as pop-up menus and error messages.
Note that we came up with this message type before Sun introduced the 1.1 AWT event model. Great minds... ;-)
| Field Summary | |
static int |
ADD
Vector add/scalar operation. |
static int |
ADDVECTOR
Vector add/vector operation. |
static int |
DELETE
Vector delete scalar operation, requires index to be set. |
static int |
DELETEVECTOR
Vector delete vector operation, requires index to be set. |
static int |
ERROR
Error message return operation. |
static int |
FIRST
Boundary guard for acceptable operation types. |
private int |
index
Index used to indicate what value of a vector is being modified by this message. |
static int |
INSERT
Vector insert operation, requires both value and index to be set. |
static int |
LAST
Boundary guard for acceptable operation types. |
static int |
MOVE
Used to signal an item being moved in a list. |
static int |
NONE
The operation value to use when you're not using a JValueObject. |
private int |
operationValue
An enumerated operation type indicator. |
private java.lang.Object |
parameter
An auxiliary value used for some kinds of operation types. |
static int |
PARAMETER
Used to pass action commands (as from pop-up menu activity) from GUI components. |
static int |
SET
Scalar value set operation. |
private java.awt.Component |
source
The arlut.csd.JDataComponent GUI component that originated this message. |
static int |
SPECIAL
Use this for those hacks |
private java.lang.Object |
value
A multi-purpose value object. |
| Constructor Summary | |
JValueObject(java.awt.Component source,
int index,
int operation)
Constructor for a simple vector change message. |
|
JValueObject(java.awt.Component source,
int index,
int operation,
int targetIndex)
Constructor for a vector move message. |
|
JValueObject(java.awt.Component source,
int index,
int operation,
java.lang.Object value)
Constructor for a simple vector change message. |
|
JValueObject(java.awt.Component source,
int index,
int operation,
java.lang.Object value,
java.lang.Object parameter)
Generic constructor |
|
JValueObject(java.awt.Component source,
java.lang.Object value)
Constructor for a simple value-set message. |
|
JValueObject(java.awt.Component source,
java.lang.Object value,
int operation)
Constructor for a simple single-value message. |
|
| Method Summary | |
int |
getIndex()
Returns the index of an item operated on in a vector component. |
int |
getOperationType()
Returns the type of operation encoded by this message. |
java.lang.Object |
getParameter()
Returns an auxiliary value. |
java.awt.Component |
getSource()
Returns the arlut.csd.JDataComponent GUI component that originated this message. |
java.lang.Object |
getValue()
Returns the value of the object being affected by this message. |
java.lang.String |
toString()
Method to get a human-readable description of the event carried by this object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int FIRST
public static final int ADD
public static final int ADDVECTOR
public static final int INSERT
public static final int DELETE
public static final int DELETEVECTOR
public static final int SET
public static final int NONE
public static final int ERROR
public static final int SPECIAL
public static final int PARAMETER
public static final int MOVE
public static final int LAST
private java.awt.Component source
private int operationValue
private java.lang.Object value
private java.lang.Object parameter
private int index
| Constructor Detail |
public JValueObject(java.awt.Component source,
java.lang.Object value)
source - arlut.csd.JDataComponent GUI component originating messagevalue - Value being set by the originating GUI component
public JValueObject(java.awt.Component source,
java.lang.Object value,
int operation)
source - arlut.csd.JDataComponent GUI component originating messagevalue - Value being set by the originating GUI componentoperation - Operation type, one of ADD, INSERT, DELETE, SET,
ERROR, SPECIAL, PARAMETER, MOVE.
public JValueObject(java.awt.Component source,
int index,
int operation)
source - arlut.csd.JDataComponent GUI component originating messageindex - index of vector connected to arlut.csd.JDataComponent GUI component being changed.operation - Operation type, one of ADD, INSERT, DELETE, SET,
ERROR, SPECIAL, PARAMETER, MOVE.
public JValueObject(java.awt.Component source,
int index,
int operation,
java.lang.Object value)
source - arlut.csd.JDataComponent GUI component originating messageindex - index of vector connected to arlut.csd.JDataComponent GUI component being changed.value - Value being set by the originating GUI componentoperation - Operation type, one of ADD, INSERT, DELETE, SET,
ERROR, SPECIAL, PARAMETER, MOVE.
public JValueObject(java.awt.Component source,
int index,
int operation,
int targetIndex)
source - arlut.csd.JDataComponent GUI component originating messageindex - index of vector connected to arlut.csd.JDataComponent GUI component being changed.operation - Operation type, one of ADD, INSERT, DELETE, SET,
ERROR, SPECIAL, PARAMETER, MOVE.
public JValueObject(java.awt.Component source,
int index,
int operation,
java.lang.Object value,
java.lang.Object parameter)
source - arlut.csd.JDataComponent GUI component originating messageindex - index of vector connected to arlut.csd.JDataComponent GUI component being changed.value - Value being set by the originating GUI componentoperation - Operation type, one of ADD, INSERT, DELETE, SET,
ERROR, SPECIAL, PARAMETER.parameter - Auxiliary object value, used when passing pop-up menu information.| Method Detail |
public java.awt.Component getSource()
public java.lang.Object getParameter()
public int getIndex()
public java.lang.Object getValue()
public int getOperationType()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||