|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.actionprovider.support.SwingViewerSupport
@SASScope(value="ALL") public class SwingViewerSupport
Provides a common implementation of the SwingActionProviderViewInterface
to which components may delegate their own implementations of that interface.
Swing components that acquire their Actions via the ActionProvider Framework (APF) are required to implement that interface.
A basic understanding of the ActionProvider Framework, of which this class is a part, is recommended before attempting to use this class.
For general information on the ActionProvider Framework, including an overview of how
the primary classes of the framework work together, refer to the
package documentation.
com.sas.actionprovider
For examples demonstrating how to use the ActionProvider Framework, including how to override default Actions or add new custom Actions, refer to the Samples Site.
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 .
SwingActionProviderViewInterface| Constructor Summary | |
|---|---|
SwingViewerSupport(ActionProviderViewInterface viewer)
Constructor that takes an instance of the view component that this class supports. |
|
| Method Summary | |
|---|---|
SwingActionProvider |
getActionProvider()
Returns the SwingActionProvider object from which this component will acquire its Actions. |
java.util.Collection |
listActionTypes(java.lang.String areaType)
Returns a Collection of String keys that define the valid actionTypes as defined by the support class that is currently associated with this component. |
java.util.Collection |
listAreaTypes()
Returns a Collection of String keys that define the valid areaTypes as defined by the support class that is currently associated with this component. |
void |
setActionProvider(SwingActionProvider actionProvider)
Sets the SwingActionProvider object from which this component will acquire its Actions. |
| Methods inherited from class com.sas.actionprovider.support.BaseViewerSupport |
|---|
getActionSupportType, getUniqueId, isActionVisible, setActionSupportType, setActionVisible, setUniqueId |
| Methods inherited from interface com.sas.actionprovider.ActionProviderViewInterface |
|---|
getActionSupportType, getUniqueId, isActionVisible, setActionSupportType, setActionVisible, setUniqueId |
| Constructor Detail |
|---|
public SwingViewerSupport(ActionProviderViewInterface viewer)
viewer - The instance of the view component.| Method Detail |
|---|
public SwingActionProvider getActionProvider()
getActionProvider in interface SwingActionProviderViewInterfacesetActionProvider(com.sas.actionprovider.SwingActionProvider)public void setActionProvider(SwingActionProvider actionProvider)
setActionProvider in interface SwingActionProviderViewInterfaceThe - ActionProvider objectgetActionProvider()public java.util.Collection listAreaTypes()
listAreaTypes in interface ActionProviderViewInterfacelistAreaTypes in class BaseViewerSupportjava.lang.IllegalStateException - if actionSupportType not set.listActionTypes(java.lang.String),
BaseViewerSupport.setActionSupportType(java.lang.String)public java.util.Collection listActionTypes(java.lang.String areaType)
listActionTypes in interface ActionProviderViewInterfacelistActionTypes in class BaseViewerSupportareaType - The key associated with a defined areaType.
java.lang.IllegalStateException - if actionSupportType not set.
java.lang.IllegalArgumentException - if areaType is null.listAreaTypes(),
BaseViewerSupport.setActionSupportType(java.lang.String)
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||