Package jaxx.runtime.swing.help
Class JAXXHelpBroker
- java.lang.Object
-
- jaxx.runtime.swing.help.JAXXHelpBroker
-
public class JAXXHelpBroker extends Object
La classe pour encapsuler l'aide de l'application.- Since:
- 1.4
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJAXXHelpBroker.ShowHelpForTrackedComponentAction
-
Field Summary
Fields Modifier and Type Field Description protected Map<Component,String>cachecache of component which cursor have been modifiedprotected Hashtable<Component,Cursor>cursorscache of cursors modified when in context-sensitive modeprotected StringdefaultIDdefault id to use if none givenprotected JAXXHelpUIHandlerhandlerhelp ui handlerprotected javax.help.HelpBrokerhelpBrokerhelp brokerprotected StringhelpKeyhelp keyprotected javax.help.HelpSethelpsethelpset to useprotected StringhelpsetNamename of helpsetstatic StringJAXX_CONTEXT_ENTRYprotected Localelocalecurrent locale usedprotected CursoronItemCursorcursor to use in context-sensitive mode
-
Constructor Summary
Constructors Constructor Description JAXXHelpBroker(String helpsetName, String helpKey, String defaultID, JAXXHelpUIHandler handler)JAXXHelpBroker(Locale locale, String helpsetName, String helpKey, String defaultID, JAXXHelpUIHandler handler)
-
Method Summary
-
-
-
Field Detail
-
JAXX_CONTEXT_ENTRY
public static final String JAXX_CONTEXT_ENTRY
- See Also:
- Constant Field Values
-
helpsetName
protected final String helpsetName
name of helpset
-
defaultID
protected final String defaultID
default id to use if none given
-
helpKey
protected final String helpKey
help key
-
helpset
protected javax.help.HelpSet helpset
helpset to use
-
helpBroker
protected javax.help.HelpBroker helpBroker
help broker
-
locale
protected Locale locale
current locale used
-
cursors
protected Hashtable<Component,Cursor> cursors
cache of cursors modified when in context-sensitive mode
-
onItemCursor
protected Cursor onItemCursor
cursor to use in context-sensitive mode
-
cache
protected final Map<Component,String> cache
cache of component which cursor have been modified
-
handler
protected JAXXHelpUIHandler handler
help ui handler
-
-
Constructor Detail
-
JAXXHelpBroker
public JAXXHelpBroker(String helpsetName, String helpKey, String defaultID, JAXXHelpUIHandler handler)
-
JAXXHelpBroker
public JAXXHelpBroker(Locale locale, String helpsetName, String helpKey, String defaultID, JAXXHelpUIHandler handler)
-
-
Method Detail
-
prepareUI
public void prepareUI(JAXXObject c)
-
showHelp
public void showHelp(JAXXContext context, String helpId)
-
getHandler
public JAXXHelpUIHandler getHandler()
-
getHelpBroker
public javax.help.HelpBroker getHelpBroker()
-
getHelpKey
public String getHelpKey()
-
getHelpset
public javax.help.HelpSet getHelpset()
-
getHelpsetName
public String getHelpsetName()
-
getDefaultID
public String getDefaultID()
-
setLocale
public void setLocale(Locale locale)
-
showHelpSet
public void showHelpSet()
-
getShowHelpButton
protected AbstractButton getShowHelpButton(JAXXObject c)
-
getShowHelpAction
protected ActionListener getShowHelpAction()
-
getDeppestComponent
protected Component getDeppestComponent(Component mouseComponent, MouseEvent event)
-
resetAndRestoreCursors
protected void resetAndRestoreCursors(Component comp)
-
getMouseEvent
public static MouseEvent getMouseEvent()
Context Sensitive Event Tracking Creates a new EventDispatchThread from which to dispatch events. This method returns when stopModal is invoked.- Returns:
- MouseEvent The mouse event occurred. Null if cancelled on an undetermined object.
-
dispatchEvent
protected static void dispatchEvent(AWTEvent event)
-
-