Package org.eclipse.help.webapp
Class AbstractButton
java.lang.Object
org.eclipse.help.webapp.AbstractButton
- All Implemented Interfaces:
- Comparable<AbstractButton>
A class which contributes a button to the help webapp
- Since:
- 3.5
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringToolbar name for bookmarksstatic final StringThe state of a button which is hiddenstatic final StringThe state of a button which is visible and depressedstatic final StringThe state of a button which is visible but not depressedstatic final StringToolbar name for the content pane, which shows help pagesstatic final StringToolbar name for the keyword indexstatic final StringToolbar name for search resultsstatic final StringToolbar name for the table of contents
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal intabstract Stringa JavaScript function which will be called when the button is pressedabstract StringgetId()Gets the id which will be assigned to the image of the button in the generated HTMLabstract StringGet the location of the a javascript file to be included in any jsp file which uses this buttongetState()Get the state of a buttonabstract StringgetTooltip(Locale locale) A user visible description of the button which will appear in the tooltipbooleanisAddedToToolbar(String toolbarName) Determines whether this button should be true if the button should be added to particular toolbar
- 
Field Details- 
BUTTON_OUTThe state of a button which is visible but not depressed- See Also:
 
- 
BUTTON_INThe state of a button which is visible and depressed- See Also:
 
- 
BUTTON_HIDDENThe state of a button which is hidden- See Also:
 
- 
CONTENT_TOOLBARToolbar name for the content pane, which shows help pages- See Also:
 
- 
TOC_TOOLBARToolbar name for the table of contents- See Also:
 
- 
INDEX_TOOLBARToolbar name for the keyword index- See Also:
 
- 
SEARCH_TOOLBARToolbar name for search results- See Also:
 
- 
BOOKMARKS_TOOLBARToolbar name for bookmarks- See Also:
 
 
- 
- 
Constructor Details- 
AbstractButtonpublic AbstractButton()
 
- 
- 
Method Details- 
getIdGets the id which will be assigned to the image of the button in the generated HTML- Returns:
- a string that consists of alphanumeric characters only with no spaces
 
- 
getImageURL- Returns:
- a URL relative to /help which is the location of the 16x16 image icon which will appear in the tab
 
- 
getTooltipA user visible description of the button which will appear in the tooltip- Parameters:
- locale- the locale of the client
- Returns:
- the tooltip text to be used in this locale
 
- 
getActiona JavaScript function which will be called when the button is pressed- Returns:
- the name of a JavaScript function
 
- 
getStateGet the state of a button- Returns:
- one of BUTTON_OUT,BUTTON_IN, orBUTTON_HIDDEN.
 
- 
getJavaScriptURLGet the location of the a javascript file to be included in any jsp file which uses this button- Returns:
- a URL path, relative to /help or nullif there.
 
- 
isAddedToToolbarDetermines whether this button should be true if the button should be added to particular toolbar- Parameters:
- toolbarName- Name of the toolbar.
- Returns:
- true
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<AbstractButton>
- Since:
- 3.7
 
 
-