|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.FeatureDescriptor
com.esri.adf.web.data.tasks.ButtonDescriptor
public class ButtonDescriptor
The ButtonDescriptor
is an intermediary class and its primary purpose is to serve as a super-class with
basic implementations for some methods for the TaskActionDescriptor
and TaskToolDescriptor
classes.
Field Summary | |
---|---|
protected String |
defaultImage
The default image URL for the button. |
protected boolean |
disabled
If true , the button will be disabled in the task UI |
protected String |
disabledImage
The disabled image URL for the button. |
protected String |
hoverImage
The hover image URL for the button. |
static String |
IMAGE_RENDERER_TYPE
The image-only renderer type. |
static String |
IMAGEANDTEXT_RENDERER_TYPE
The image-and-text renderer type. |
protected boolean |
justBeenDisabled
|
protected String |
rendererType
The renderer type of this parameter. |
protected String |
selectedImage
The selected image URL for the button. |
protected boolean |
showLoadingImage
If true , a loading image will be displayed while the action / tool is being processed. |
protected String |
style
The CSS style to be applied to the button. |
protected String |
styleClass
The CSS style class to be applied to the button. |
static String |
TEXT_RENDERER_TYPE
The text-only renderer type. |
protected String |
toolTip
The tool tip text for the button. |
static List<TaskParamDescriptor> |
VALIDATE_ALL_PARAMS
An option that indicates that all Task parameters must pass validation before this button is invoked. |
static List<TaskParamDescriptor> |
VALIDATE_NONE_PARAMS
An option that indicates that no Task parameters must pass validation before this button is invoked. |
Constructor Summary | |
---|---|
ButtonDescriptor()
|
Method Summary | |
---|---|
protected void |
generateButtonXML(Element element)
Generates the XML content for this button. |
String |
getDefaultImage()
Returns the default image URL for the button |
String |
getDisabledImage()
Returns the disabled image URL for the button |
String |
getHoverImage()
Returns the hover image URL for the button |
List<TaskParamDescriptor> |
getParamsToValidate()
Returns the list of Task parameters that must pass validation when this button is invoked. |
String |
getRendererType()
Returns the renderer type of this parameter |
String |
getSelectedImage()
Returns the selected image URL for the button |
String |
getStyle()
Returns the CSS style to be applied to the button |
String |
getStyleClass()
Returns the CSS style class to be applied to the button |
String |
getToolTip()
Returns the tool tip text for the button |
boolean |
isDisabled()
If true , the button will be disabled in the task UI |
boolean |
isShowLoadingImage()
If true , a loading image will be displayed while the action / tool is being processed |
void |
setDefaultImage(String defaultImage)
Sets the default image URL for the button |
void |
setDisabled(boolean disabled)
If set to true , the button will be disabled in the task UI |
void |
setDisabledImage(String disabledImage)
Returns the disabled image URL for the button |
void |
setHoverImage(String hoverImage)
Sets the hover image URL for the button |
void |
setParamsToValidate(List<? extends TaskParamDescriptor> paramToValidate)
Sets the list of Task parameters that must pass validation when this button is invoked. |
void |
setRendererType(String rendererType)
Sets the renderer type of this parameter |
void |
setSelectedImage(String selectedImage)
Sets the selected image URL for the button |
void |
setShowLoadingImage(boolean showLoadingImage)
If set to true , a loading image will be displayed while the action / tool is being processed |
void |
setStyle(String style)
Sets the CSS style to be applied to the button |
void |
setStyleClass(String styleClass)
Sets the CSS style class to be applied to the button |
void |
setToolTip(String toolTip)
Sets the tooltip text for the button |
Methods inherited from class java.beans.FeatureDescriptor |
---|
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String IMAGEANDTEXT_RENDERER_TYPE
public static final String TEXT_RENDERER_TYPE
public static final String IMAGE_RENDERER_TYPE
public static final List<TaskParamDescriptor> VALIDATE_ALL_PARAMS
setParamsToValidate(List)
public static final List<TaskParamDescriptor> VALIDATE_NONE_PARAMS
setParamsToValidate(List)
protected String style
protected String styleClass
protected String toolTip
protected String defaultImage
protected String hoverImage
protected String selectedImage
protected String disabledImage
protected boolean disabled
true
, the button will be disabled in the task UI
protected boolean justBeenDisabled
protected boolean showLoadingImage
true
, a loading image will be displayed while the action / tool is being processed.
protected String rendererType
TEXT_RENDERER_TYPE
Constructor Detail |
---|
public ButtonDescriptor()
Method Detail |
---|
protected void generateButtonXML(Element element)
Generates the XML content for this button. Sub-classes can call this method to generate the basic XML content for the button.
element
- the XML Element
for the contentpublic String getStyle()
public void setStyle(String style)
style
- the CSS style to be applied to the buttonpublic String getStyleClass()
public void setStyleClass(String styleClass)
styleClass
- the CSS style class to be applied to the buttonpublic String getToolTip()
public void setToolTip(String toolTip)
toolTip
- the tooltip text for the buttonpublic String getDefaultImage()
public void setDefaultImage(String defaultImage)
defaultImage
- the default image URL for the buttonpublic String getHoverImage()
public void setHoverImage(String hoverImage)
hoverImage
- the hover image URL for the buttonpublic String getSelectedImage()
public void setSelectedImage(String selectedImage)
selectedImage
- the selected image URL for the buttonpublic String getDisabledImage()
public void setDisabledImage(String disabledImage)
disabledImage
- the disabled image URL for the buttonpublic boolean isDisabled()
true
, the button will be disabled in the task UI
true
, the button will be disabled in the task UIpublic void setDisabled(boolean disabled)
true
, the button will be disabled in the task UI
disabled
- if true
, the button will be disabled in the task UIpublic boolean isShowLoadingImage()
true
, a loading image will be displayed while the action / tool is being processed
true
, a loading image will be displayed while the action / tool is being processedpublic void setShowLoadingImage(boolean showLoadingImage)
true
, a loading image will be displayed while the action / tool is being processed
showLoadingImage
- if true
, a loading image will be displayed while the action / tool is being
processedpublic String getRendererType()
public void setRendererType(String rendererType)
rendererType
- the renderer type of this parameterpublic List<TaskParamDescriptor> getParamsToValidate()
VALIDATE_ALL_PARAMS
which
indicates that all Task parameters must pass validation.
public void setParamsToValidate(List<? extends TaskParamDescriptor> paramToValidate)
VALIDATE_ALL_PARAMS
which
indicates that all Task parameters must pass validation. You can control which parameters must pass validation by
specifying list of TaskParamDescriptor
objects. Alternatively, you can bypass validation altogether by
using VALIDATE_NONE_PARAMS
.
TaskActionDescriptor actionDescriptor = ...; //validate specified parameters(s) List<TaskParamDescriptor> params = ...; actionDescriptor.setParamsToValidate(params); //or, bypass validation actionDescriptor.setParamsToValidate(ButtonDescriptor.VALIDATE_NONE_PARAMS);
paramToValidate
- the list of parameters to be validated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |