|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.workplace.tools.A_CmsHtmlIconButton
Default skeleton for an html icon button.
| Field Summary | |
static CmsMessageContainer |
EMPTY_MESSAGE
Constant for an empty message. |
protected String |
m_id
unique id. |
| Constructor Summary | |
A_CmsHtmlIconButton(String id)
Default Constructor. |
|
A_CmsHtmlIconButton(String id,
CmsMessageContainer name,
CmsMessageContainer helpText,
String iconPath,
boolean enabled)
Full Constructor. |
|
| Method Summary | |
static String |
defaultButtonHtml(CmsJspActionElement jsp,
CmsHtmlIconButtonStyleEnum style,
String id,
String name,
String helpText,
boolean enabled,
String iconPath,
String onClick)
Generates a default html code for icon buttons. |
static String |
defaultButtonHtml(CmsJspActionElement jsp,
CmsHtmlIconButtonStyleEnum style,
String id,
String helpId,
String name,
String helpText,
boolean enabled,
String iconPath,
String onClick,
boolean singleHelp)
Generates a default html code where several buttons can have the same help text. |
static String |
defaultHelpHtml(String helpId,
String helpText)
Generates html for the helptext when having one helptext for several buttons. |
CmsMessageContainer |
getHelpText()
Returns the help text. |
String |
getIconPath()
Returns the path to the icon. |
String |
getId()
Returns the id of the html component. |
CmsMessageContainer |
getName()
Returns the display name. |
boolean |
isEnabled()
Returns if enabled or disabled. |
void |
setEnabled(boolean enabled)
Sets if enabled or disabled. |
void |
setHelpText(CmsMessageContainer helpText)
Sets the help Text. |
void |
setIconPath(String iconPath)
Sets the icon Path. |
void |
setName(CmsMessageContainer name)
Sets the name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton |
buttonHtml |
| Field Detail |
public static final CmsMessageContainer EMPTY_MESSAGE
protected String m_id
| Constructor Detail |
public A_CmsHtmlIconButton(String id)
id - the id
public A_CmsHtmlIconButton(String id,
CmsMessageContainer name,
CmsMessageContainer helpText,
String iconPath,
boolean enabled)
id - the idname - the namehelpText - the help texticonPath - the path to the iconenabled - if enabled or not| Method Detail |
public static String defaultButtonHtml(CmsJspActionElement jsp,
CmsHtmlIconButtonStyleEnum style,
String id,
String name,
String helpText,
boolean enabled,
String iconPath,
String onClick)
jsp - the jsp contextstyle - the style of the buttonid - the idname - the namehelpText - the help textenabled - if enabled or noticonPath - the path to the icononClick - the js code to execute
public static String defaultButtonHtml(CmsJspActionElement jsp,
CmsHtmlIconButtonStyleEnum style,
String id,
String helpId,
String name,
String helpText,
boolean enabled,
String iconPath,
String onClick,
boolean singleHelp)
jsp - the cms context, can be nullstyle - the style of the buttonid - the idhelpId - the id of the helptext div tagname - the name, if empty only the icon is displayedhelpText - the help text, if empty no mouse events are generatedenabled - if enabled or not, if not set be sure to take an according helptexticonPath - the path to the icon, if empty only the name is displayedonClick - the js code to execute, if empty no link is generatedsingleHelp - if set, no helptext is written, you have to use the defaultHelpHtml() method later
public static String defaultHelpHtml(String helpId,
String helpText)
helpId - the id of the help texthelpText - the help text
public CmsMessageContainer getHelpText()
I_CmsHtmlIconButton
getHelpText in interface I_CmsHtmlIconButtonI_CmsHtmlIconButton.getHelpText()public String getIconPath()
I_CmsHtmlIconButton
getIconPath in interface I_CmsHtmlIconButtonI_CmsHtmlIconButton.getIconPath()public String getId()
I_CmsHtmlIconButton
getId in interface I_CmsHtmlIconButtonI_CmsHtmlIconButton.getId()public CmsMessageContainer getName()
I_CmsHtmlIconButton
getName in interface I_CmsHtmlIconButtonI_CmsHtmlIconButton.getName()public boolean isEnabled()
I_CmsHtmlIconButton
isEnabled in interface I_CmsHtmlIconButtonI_CmsHtmlIconButton.isEnabled()public void setEnabled(boolean enabled)
I_CmsHtmlIconButton
setEnabled in interface I_CmsHtmlIconButtonenabled - if enabled or disabledI_CmsHtmlIconButton.setEnabled(boolean)public void setHelpText(CmsMessageContainer helpText)
I_CmsHtmlIconButton
setHelpText in interface I_CmsHtmlIconButtonhelpText - the help Text to setI_CmsHtmlIconButton.setHelpText(org.opencms.i18n.CmsMessageContainer)public void setIconPath(String iconPath)
I_CmsHtmlIconButton
setIconPath in interface I_CmsHtmlIconButtoniconPath - the icon Path to setI_CmsHtmlIconButton.setIconPath(java.lang.String)public void setName(CmsMessageContainer name)
I_CmsHtmlIconButton
setName in interface I_CmsHtmlIconButtonname - the name to setI_CmsHtmlIconButton.setName(org.opencms.i18n.CmsMessageContainer)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||