public class ExamplePicker extends WApplication
A component which enables users to pick an example to display. The UI is provided by either delegate
SimplePicker or TreePicker, depending on the configuration parameters. By default, the TreePicker is
used. To use the (old) simple example picker, set the following parameter in e.g. your local_app.properties.
It also demonstrates how to add additional functionality on the client, by performing syntax highlighting of the java source code using javascript/css.
com.github.bordertech.wcomponents.examples.picker.ExamplePicker.ui = com.github.bordertech.wcomponents.examples.picker.SimplePicker
WApplication.ApplicationResource, WApplication.WApplicationModelAbstractWComponent.WComponentRefDEFAULT_APPLICATION_ID, DEFAULT_INTERNAL_ID, DEFAULT_NO_ID, ID_CONTEXT_SEPERATOR, ID_FRAMEWORK_ASSIGNED_SEPERATOR, ID_VALIDATION_PATTERN| Constructor and Description |
|---|
ExamplePicker()
Construct the example picker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleStepError()
If a step error has occurred, then display an error message to the user.
|
protected void |
preparePaintComponent(Request request)
Override preparePaint in order to set up the resources on first access by a user.
|
addCssFile, addCssResource, addCssUrl, addJsFile, addJsResource, addJsUrl, getComponentModel, getCssResources, getIcon, getIdName, getJsResources, getNamingContextId, getOrCreateComponentModel, getTitle, getUiVersionKey, hasUnsavedChanges, instance, isAppendID, isNamingContext, newComponentModel, removeAllCssResources, removeAllJsResources, removeCssResource, removeJsResource, setAppendID, setTitle, setUnsavedChanges, toStringadd, add, remove, removeAllsetNamingContextgetChildAt, getChildCount, getChildren, getIndexOfChildaddHtmlClass, addHtmlClass, addNotify, afterPaint, assertAddSupported, beforePaint, createErrorDiagnostic, createErrorDiagnostic, forward, getAccessibleText, getAttribute, getBaseUrl, getDefaultModel, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getInternalId, getLabel, getName, getParent, getScratchMap, getTabIndex, getTag, getTemplate, getTemplateMarkUp, getToolTip, handleRequest, hasNoComponentModel, hasTabIndex, initialiseComponentModel, invokeLater, invokeLaters, isDebugStructure, isDefaultState, isFlagSet, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, paintComponent, preparePaint, removeAttribute, removeComponentModel, removeHtmlClass, removeHtmlClass, removeNotify, replaceWComponent, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFlag, setFocussed, setHidden, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showErrorIndicatorsForComponent, showWarningIndicators, showWarningIndicatorsForComponent, tidyUpUIContext, tidyUpUIContextForTree, validate, validateComponent, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, handleRequest, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validateaddAllgetChildAt, getChildCount, getChildren, getIndexOfChildpublic void handleStepError()
handleStepError in class WApplicationprotected void preparePaintComponent(Request request)
preparePaintComponent in class AbstractWComponentrequest - the request being responded to.Copyright © 2024. All rights reserved.