org.xulux.api.core
Interface PartRequest

All Superinterfaces:
java.lang.Cloneable

public interface PartRequest
extends java.lang.Cloneable

The partRequest contains the direct connection to the current processed field or action (action not in the Swing sence)

Version:
$Id: PartRequest.java,v 1.1 2005/12/18 12:58:23 mvdb Exp $
Author:
Martin van den Bemt

Field Summary
static int ACTION_CANCEL_REQUEST
          The user pressed cancel
static int ACTION_OK_REQUEST
          The user pressed ok
static int ACTION_VALUE_CHANGED
          Field changed
static int NEW_PART_VALUE
          The part value has changed
static int NO_ACTION
          No action, just felt the need to call you
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getName()
           
 IPart getPart()
           
 ISession getSession()
          Returns the session of the originating part (the part which you can acquire by using getPart()
 int getType()
           
 java.lang.Object getValue()
          Returns the current value of the part
 java.lang.Object getValue(java.lang.String field)
          THIS RETURNS THE GUI VALUE!!! Returns the value of the specified field Fields in format partname.fieldname will return null when the part or field is null
 IWidget getWidget()
           
 IWidget getWidget(java.lang.String name)
           
 void setValue(java.lang.Object value)
          Sets the current value to a new value
 

Field Detail

NO_ACTION

static final int NO_ACTION
No action, just felt the need to call you

See Also:
Constant Field Values

ACTION_OK_REQUEST

static final int ACTION_OK_REQUEST
The user pressed ok

See Also:
Constant Field Values

ACTION_CANCEL_REQUEST

static final int ACTION_CANCEL_REQUEST
The user pressed cancel

See Also:
Constant Field Values

ACTION_VALUE_CHANGED

static final int ACTION_VALUE_CHANGED
Field changed

See Also:
Constant Field Values

NEW_PART_VALUE

static final int NEW_PART_VALUE
The part value has changed

See Also:
Constant Field Values
Method Detail

getValue

java.lang.Object getValue()
Returns the current value of the part

Returns:
the value of the requesting widget

getValue

java.lang.Object getValue(java.lang.String field)
THIS RETURNS THE GUI VALUE!!! Returns the value of the specified field Fields in format partname.fieldname will return null when the part or field is null

Parameters:
field - the name of the field
Returns:
the value of the field requested

setValue

void setValue(java.lang.Object value)
Sets the current value to a new value

Parameters:
value - set the value of the requesting widget

getPart

IPart getPart()
Returns:
the applicationPart of the requesting widget

getType

int getType()
Returns:
the requestType of the requesting widget

getName

java.lang.String getName()
Returns:
the name of the requesting widget

getWidget

IWidget getWidget()
Returns:
the requesting widget

getWidget

IWidget getWidget(java.lang.String name)
Parameters:
name - - the name of the widget to fetch.
Returns:
the widget specified in the current part

clone

java.lang.Object clone()
Returns:
the clone of the request object

getSession

ISession getSession()
Returns the session of the originating part (the part which you can acquire by using getPart()

Returns:
the session of the part


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.