com.sas.actionprovider
Class Area

com.sas.actionprovider.Area

public class Area

The Area object is used by the ActionProvider Framework( APF ) as a mechanism for describing a particular area of a Viewer component in a more specific way than the general areaType that is defined by a support class.

For example, the HttpTableViewSupport.COLUMN_HEADER_AREA is a general areaType defined by HttpTableViewSupport to identify all the column headers of a TableView. To specify that an operation should only affect certain colum(s) within the COLUMN_HEADER_AREA, the Area Object allows for the setting of specific values.

Area area = new Area( HttpTableViewSupport.COLUMN_HEADER_AREA, "someColumnName" );

The types of values that are required is defined by the APF support class.

A basic understanding of the ActionProvider Framework, of which this class is a part, is recommended before attempting to use this class.



Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.

Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .

Since:
3.0
See Also:
HttpTableViewSupport, BaseActionProviderSupport.setAction(com.sas.actionprovider.BaseAction, java.util.Collection, com.sas.actionprovider.Area)

Field Summary
protected  java.lang.String type
          The general type of area corresponding to an areaType defined by a support class.
protected  java.util.List values
          The collection of specific area values that this Area describes.
 
Constructor Summary
Area()
          Default constructor
Area(java.lang.String type)
          AreaType constructor
Area(java.lang.String type, java.lang.Object value)
          AreaType, Value constructor.
 
Method Summary
 void addValue(java.lang.Object value)
          Add a specific area value.
 java.lang.String getType()
          Return the general type of area corresponding to an areaType defined by a support class.
 java.util.List getValues()
          Returns the collection of specific area values.
 void removeValue(java.lang.Object value)
          Removes a specific area value from this Area definition.
 void setType(java.lang.String type)
          Set the type of area corresponding to an areaType defined by a support class.
 

Field Detail

type

protected java.lang.String type
The general type of area corresponding to an areaType defined by a support class.


values

protected java.util.List values
The collection of specific area values that this Area describes.

Constructor Detail

Area

public Area()
Default constructor


Area

public Area(java.lang.String type)

AreaType constructor

Parameters:
type - The general type of area corresponding to an areaType defined by a support class.

Area

public Area(java.lang.String type,
            java.lang.Object value)

AreaType, Value constructor.

Parameters:
type - The general type of area corresponding to an areaType defined by a support class.
value - A specific area value
Method Detail

setType

public void setType(java.lang.String type)

Set the type of area corresponding to an areaType defined by a support class.

Parameters:
type - The general type of area corresponding to an areaType defined by a support class.
See Also:
getType()

getType

public java.lang.String getType()

Return the general type of area corresponding to an areaType defined by a support class.

Returns:
the general type of area corresponding to an areaType defined by a support class.
See Also:
setType(java.lang.String)

addValue

public void addValue(java.lang.Object value)

Add a specific area value.

Parameters:
value - the specific area value.
Throws:
java.lang.IllegalArgumentException - if value is null
See Also:
removeValue(java.lang.Object)

removeValue

public void removeValue(java.lang.Object value)

Removes a specific area value from this Area definition.

Parameters:
value - the specific area value to be removed.
Throws:
java.lang.IllegalArgumentException - if value is null
See Also:
addValue(java.lang.Object)

getValues

public java.util.List getValues()

Returns the collection of specific area values.

Returns:
the collection of specific area values.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.