Class AbstractButton
- java.lang.Object
-
- org.silverpeas.core.web.util.viewgenerator.html.buttons.AbstractButton
-
- All Implemented Interfaces:
Button
,SimpleGraphicElement
- Direct Known Subclasses:
ButtonSilverpeasV5
public abstract class AbstractButton extends Object implements Button
- Version:
- Author:
- neysseri
-
-
Constructor Summary
Constructors Constructor Description AbstractButton()
Creates new ButtonWA
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
getAction()
Gets the action with pre processing if any.protected String
getClasses()
String
getIconsPath()
Method declarationvoid
init(String label, String action, boolean disabled)
Method declarationString
print()
Method declarationprotected abstract String
renderButtonHtml()
void
setActionPreProcessing(String actionPreProcessing)
This method permits to apply some process before calling the action.void
setClasses(String classes)
Sets css classes to the HTML TAG representing the button.void
setRootImagePath(String s)
Method declaration
-
-
-
Field Detail
-
label
public String label
-
disabled
public boolean disabled
-
-
Method Detail
-
getIconsPath
public String getIconsPath()
Method declaration- Returns:
-
setRootImagePath
public void setRootImagePath(String s)
Method declaration- Specified by:
setRootImagePath
in interfaceButton
- Parameters:
s
-
-
print
public final String print()
Method declaration- Specified by:
print
in interfaceButton
- Specified by:
print
in interfaceSimpleGraphicElement
- Returns:
-
renderButtonHtml
protected abstract String renderButtonHtml()
-
setActionPreProcessing
public void setActionPreProcessing(String actionPreProcessing)
Description copied from interface:Button
This method permits to apply some process before calling the action. The actionPreProcessing string must be a javascript routine in which the parameter {action} will be replaced by the specified action onButton.init(String, String, boolean)
method.- Specified by:
setActionPreProcessing
in interfaceButton
- Parameters:
actionPreProcessing
- the javascript routine.
-
setClasses
public void setClasses(String classes)
Description copied from interface:Button
Sets css classes to the HTML TAG representing the button.- Specified by:
setClasses
in interfaceButton
- Parameters:
classes
- the css classes.
-
getAction
protected String getAction()
Gets the action with pre processing if any.- Returns:
- the action as string.
-
getClasses
protected String getClasses()
-
-