|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.html.Button
public class Button
The Button is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript for a button look by setting images and a label. topLeftImage, topRightImage, bottomLeftImage, etc.. may be set to give the button different looks. The actions of the buttons may be specified using the onClick or onKeyPress events. Default Buttom style classes:
buttonTopLeft | buttonTop | buttonTopRight |
buttonLeft | button | buttonRight |
buttonBottomLeft | buttonBottom | buttonBottomRight |
topLeftImage | topImage | topRightImage |
leftImage | image | rightImage |
bottomLeftImage | bottomImage | bottomRightImage |
button_tl | button_t | button_tr |
button_l | button_img (and button_label for the span tag that's wrapping the label) | button_r |
button_bl | button_b | button_br |
The Button 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 Button 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 Button uses the following JavaScript files:
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.
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 .
BaseButton
,
Serialized FormField Summary | |
---|---|
static int |
ANCHOR
|
static int |
BUTTON
|
Fields inherited from class com.sas.servlet.tbeans.BaseButton |
---|
BOTTOM, BOTTOM_ALL, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER_ALL, DEFAULT_DYNAMIC_BUTTON_ROOT_KEY, DEFAULT_DYNAMIC_BUTTON_ROOT_NAME, imageLocation, LEFT, NONE, RIGHT, TOP, TOP_ALL, TOP_LEFT, TOP_RIGHT |
Fields inherited from interface com.sas.servlet.tbeans.html.ButtonStyleAreaKeysInterface |
---|
BUTTON_BOTTOM, BUTTON_BOTTOM_LEFT, BUTTON_BOTTOM_RIGHT, BUTTON_CENTER, BUTTON_CENTER_ACTIVE, BUTTON_CENTER_DISABLED, BUTTON_CONTAINER, BUTTON_LEFT, BUTTON_RIGHT, BUTTON_ROLLOVER_STYLE, BUTTON_STYLE, BUTTON_TOP, BUTTON_TOP_LEFT, BUTTON_TOP_RIGHT |
Constructor Summary | |
---|---|
Button()
Constructor of the button |
|
Button(java.lang.String label)
Constructor of the button |
|
Button(java.lang.String label,
java.lang.String image)
Constructor of the button |
Method Summary | |
---|---|
java.lang.StringBuffer |
getButtonProperties()
Returns all the JavaScript function names set on the button which will be generated on on the <table> tag. |
int |
getButtonType()
Returns the valid button type used for this button. |
java.util.Map |
getStyleMap()
Returns the style map for this button. |
void |
setButtonType(int type)
Sets the type of the button. |
void |
write(java.io.PrintWriter out)
Writes the Button |
Field Detail |
---|
public static final int BUTTON
public static final int ANCHOR
Constructor Detail |
---|
public Button()
public Button(java.lang.String label)
label
- label of the buttonpublic Button(java.lang.String label, java.lang.String image)
label
- label of the buttonimage
- image of the buttonMethod Detail |
---|
public void write(java.io.PrintWriter out) throws java.io.IOException
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseTransformation
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic java.lang.StringBuffer getButtonProperties()
public void setButtonType(int type)
type
- the button typegetButtonType()
public int getButtonType()
setButtonType(int)
public java.util.Map getStyleMap()
STYLE KEY | DEFAULT STYLE |
BUTTON_CONTAINER | buttonContainer |
BUTTON_TOP | buttonTop |
BUTTON_TOP_RIGHT | buttonTopRight |
BUTTON_TOP_LEFT | buttonTopLeft |
BUTTON_BOTTOM | buttonBottom |
BUTTON_BOTTOM_RIGHT | buttonBottomRight |
BUTTON_BOTTOM_LEFT | buttonBottomLeft |
BUTTON_CENTER | button |
BUTTON_CENTER_DISABLED | buttonDisabled |
getStyleMap
in interface ComplexStyleInterface
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |