|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.navigationbar.html.NavigationBarRowScrollingElement
public class NavigationBarRowScrollingElement
The NavigationBarRowScrollingElement is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript to represents the row scrolling actions for a NavigationBar.
NavigationBarRowScrollingElement generates a HTML table which contains the row scrolling actions and the message associated with the NavigationBarRowScrollingElement.
This class requires a model that implements
RowNavigationInterface
.
The NavigationBarRowScrollingElement is one of several TransformationBeans that rely on a set of style classes that are used by default when generating the resulting markup language. For more information on style sheets and the default style classes that apply to this TransformationBean, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Cascading Style Sheets, Images, and TransformationBeans as well as the TransformationBeans Style Sheet Reference.
The NavigationBarRowScrollingElement is one of several TransformationBeans that rely on JavaScript to provide some of its functionality. These JavaScript files are including automatically by the tbean. See JavaScriptIncludeHandler for more information about how these files are included and how to customize this behavior. The NavigationBarRowScrollingElement uses the following JavaScript files:
Note that the toString() method on this class calls the write
method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
For More Information:
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/.
Examples for this class may be found on the Examples Site.
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:NavigationBarRowScrollingElement custom tag.
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 .
Field Summary |
---|
Fields inherited from interface com.sas.servlet.tbeans.HttpConstants |
---|
ALL, BASELINE, CHAR, COL, COLGROUP, JUSTIFY, MULTIPLE, NONE, ROW, ROWGROUP, SINGLE |
Fields inherited from interface com.sas.servlet.tbeans.navigationbar.html.NavigationBarScrollingElementStyleKeysInterface |
---|
NAVIGATIONBAR_INPUT_STYLE, NAVIGATIONBAR_MESSAGE_STYLE |
Constructor Summary | |
---|---|
NavigationBarRowScrollingElement()
Creates an instance of the NavigationBarRowScrollingElement with a null model and a default name. |
|
NavigationBarRowScrollingElement(BaseNavigationInterface model)
Creates an instance of the NavigationBarRowScrollingElement with the given model and the given name. |
Method Summary | |
---|---|
com.sas.util.SimpleTemplate |
getDefaultMessageTemplate()
Returns the default messageTemplate used to generate the scrolling element's message. |
java.lang.String |
getMessage()
Returns the scrolling message generated by using the SimpleTemplate returned from the getMessageTemplate() method. |
boolean |
isVisible()
Returns whether or not the NavigationBarRowScrollingElement should be written. |
void |
setActionProvider(HttpActionProvider provider)
Sets the ActionProvider object for the row scrolling elements. |
void |
setActionVisible(java.lang.String actionType,
java.lang.String areaType,
boolean visible)
Sets the visible status of the specified actionType for the specified area. |
void |
setFirstVisible(boolean visible)
Sets if the first action is visible. |
void |
setGotoFieldVisible(boolean visible)
Sets if the goto action should be displayed. |
void |
setLastVisible(boolean visible)
Sets if the last action is visible. |
void |
setModel(BaseNavigationInterface navigationBarModel)
Sets the model for the row scrolling element. |
void |
setNextVisible(boolean visible)
Sets if the next action is visible. |
void |
setPageBackwardVisible(boolean visible)
Sets if the pageBackward action is visible. |
void |
setPageForwardVisible(boolean visible)
Sets if the pageForward action is visible. |
void |
setPreviousVisible(boolean visible)
Sets if the previous action is visible. |
void |
writeBackwardScrollers(java.io.PrintWriter out)
Generates the HTML visual representation of the scrolling actions that scroll backward and can be obtained from the ActionProvider. |
void |
writeForwardScrollers(java.io.PrintWriter out)
Generates the HTML visual representation of the scrolling actions that scroll forward and can be obtained from the ActionProvider. |
void |
writeGotoField(java.io.PrintWriter out)
Formats and writes the contents of the row scrolling navigation element's goto field. |
void |
writeMessage(java.io.PrintWriter out)
Formats and writes the contents of the row scrolling navigation element's message. |
Methods inherited from class com.sas.servlet.tbeans.navigationbar.html.NavigationBarScrollingElement |
---|
getGotoFieldLabel, getMessageOrientation, getMessageTemplate, getStyleMap, getURLTemplate, isGotoFieldInMessage, setGotoFieldInMessage, setGotoFieldLabel, setImageVisible, setMessageOrientation, setMessageTemplate, writeBackwardScrollers, writeBackwardScrollers, writeContent, writeForwardScrollers, writeForwardScrollers, writeGotoField, writeGotoField, writeMessage, writeMessage |
Methods inherited from class com.sas.servlet.tbeans.navigationbar.BaseNavigationBarElement |
---|
getModel |
Methods inherited from class com.sas.servlet.tbeans.BaseActionTransformation |
---|
dispose, getActionProvider, getActionSupportType, getUniqueId, isActionVisible, listActionTypes, listAreaTypes, setActionSupportType, setUniqueId |
Methods inherited from interface com.sas.servlet.tbeans.TransformationInterface |
---|
getCustomAttributes, getDescription, getId, getLocale, getName, getRequest, getResponse, getTagEpilog, getTagProlog, setCustomAttributes, setDescription, setId, setLocale, setName, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, write, write, write |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
---|
getRequest, setRequest |
Constructor Detail |
---|
public NavigationBarRowScrollingElement()
public NavigationBarRowScrollingElement(BaseNavigationInterface model)
model
- the model for the row scrolling elementname
- the name assigned to the row scrolling elementMethod Detail |
---|
public void setModel(BaseNavigationInterface navigationBarModel)
setModel
in class BaseNavigationBarElement
model
- the model for the row scrolling element
java.lang.IllegalArgumentException
- if the model is not an instanceof
com.sas.servlet.tbeans.navigationbar.RowNavigationInterfacepublic java.lang.String getMessage()
Returns the scrolling message generated by using the SimpleTemplate returned from the getMessageTemplate() method.
The getMessage() method is responsible for setting up the value dictionary on the SimpleTemplate. The dictionary contains the keys STARTROW, ENDROW and ROWCOUNT. After setting the value dictionary, it should return the format string from the SimpleTemplate.
getMessage
in class NavigationBarScrollingElement
NavigationBarScrollingElement.getMessageTemplate()
,
NavigationBarScrollingElement.setMessageTemplate(com.sas.util.SimpleTemplate)
,
SimpleTemplate
public com.sas.util.SimpleTemplate getDefaultMessageTemplate()
getDefaultMessageTemplate
in class NavigationBarScrollingElement
SimpleTemplate
,
NavigationBarScrollingElement.getMessageTemplate()
,
SimpleTemplate
,
getMessage()
public void writeMessage(java.io.PrintWriter out) throws java.io.IOException
writeMessage
in class NavigationBarScrollingElement
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeBackwardScrollers(java.io.PrintWriter out) throws java.io.IOException
writeBackwardScrollers
in class NavigationBarScrollingElement
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeForwardScrollers(java.io.PrintWriter out) throws java.io.IOException
writeForwardScrollers
in class NavigationBarScrollingElement
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeGotoField(java.io.PrintWriter out) throws java.io.IOException
writeGotoField
in class NavigationBarScrollingElement
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void setGotoFieldVisible(boolean visible)
setGotoFieldVisible
in class NavigationBarScrollingElement
visible
- true if goto action should be displayedpublic void setFirstVisible(boolean visible)
setFirstVisible
in class NavigationBarScrollingElement
visible
- true if the first action should be visiblepublic void setPageBackwardVisible(boolean visible)
setPageBackwardVisible
in class NavigationBarScrollingElement
visible
- true if the pageBackward action should be visiblepublic void setPreviousVisible(boolean visible)
setPreviousVisible
in class NavigationBarScrollingElement
visible
- true if the previous action should be visiblepublic void setNextVisible(boolean visible)
setNextVisible
in class NavigationBarScrollingElement
visible
- true if the next action should be visiblepublic void setPageForwardVisible(boolean visible)
setPageForwardVisible
in class NavigationBarScrollingElement
visible
- true if the pageForward action should be visiblepublic void setLastVisible(boolean visible)
setLastVisible
in class NavigationBarScrollingElement
visible
- true if the last action should be visiblepublic void setActionProvider(HttpActionProvider provider)
setActionProvider
in interface HttpActionProviderInterface
setActionProvider
in class BaseActionTransformation
provider
- the ActionProvider object for the row scrolling elementsHttpActionProviderInterface.getActionProvider()
public boolean isVisible()
isVisible
in interface TransformationInterface
isVisible
in class BaseTransformation
public void setActionVisible(java.lang.String actionType, java.lang.String areaType, boolean visible)
setActionVisible
in interface ActionProviderViewInterface
setActionVisible
in class BaseActionTransformation
actionType
- The key that identifies the type of action.area
- The area affected by the change in visibility fort the actionType. If null,
then the method call applies to all the known areaTypes.visible
- The boolean indicating whether the actionType should be hidden
or unhidden.
java.lang.IllegalArgumentException
- if non-null Area specified with a null areaType attribute.
java.lang.IllegalStateException
- if actionSupportType not set.ActionProviderViewInterface.isActionVisible(java.lang.String, java.lang.String)
,
ActionProviderSupportTypes
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |