public class HtmlHelpField extends IdentifiedAbstractFormComponent implements HyperlinkListener
HTML component with hyperlinks to invoke some different actions in the form elements.
template parameter value. This value
can be one of the following three possibilities:
attribute and
the method name.
<html>
<body>
<a href="ETableEntityName.openInsertDetailForm()"><img src="com/ontimize/gui/images/detail.png">Show the insertion form from table ETableEntityName</a>
<a href="EPacketsItems.openDetailForm(getSelectedRow())">Open the detail form with the selected data</a>
<a href="query.doClick()">Do click in the form query button</a>
</body>
</html>
init(Hashtable) | Modifier and Type | Class and Description |
|---|---|
protected static class |
HtmlHelpField.ParameterInfo |
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
currentData |
protected String |
currentSeparator |
protected String |
currentTemplate |
protected boolean |
horizontalScroll |
protected CustomEditorPane |
htmlViewer |
protected String |
originalTemplate
Variables useful to show the same template with different values in it
|
protected boolean |
scrollable |
protected boolean |
verticalScroll |
attribute, enabledPermission, parentForm, restricted, visiblePermissiondefaultBottomMargin, defaultLeftMargin, defaultRightMargin, defaultTopMarginaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDESACTIVATE_COMPONENT_BY_PERMISSION_TIPDEBUG_LANGUAGEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
HtmlHelpField(Hashtable p) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean() |
protected void |
doAction(Object ob,
String action) |
Object |
getConstraints(LayoutManager parentLayout)
Description method to return the
constraints component to
place correctly in parent container. |
String |
getCurrentTemplate() |
List |
getDataFieldNames(String template,
String separator) |
protected Method |
getMethod(Object ob,
String methodName,
HtmlHelpField.ParameterInfo[] parameters) |
protected Method |
getNonPublicMethod(Class c,
String methodName,
Class[] paramsClasss) |
protected HtmlHelpField.ParameterInfo |
getParameterInfo(Object ob,
String param) |
protected String[] |
getParameters(String paramString) |
Dimension |
getPreferredSize() |
protected String |
getTemplateText(String templatePath) |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
protected String |
getTranslateTemplate(ResourceBundle resourceBundle) |
JEditorPane |
getViewer() |
void |
hyperlinkUpdate(HyperlinkEvent evt) |
void |
init(Hashtable parameters)
Initialize the component with the following parameters:
|
void |
setData(Hashtable data,
String separator) |
void |
setPaint(Paint paint) |
void |
setResourceBundle(ResourceBundle resourceBundle)
Sets the language resource bundle.
|
void |
setText(String text_path) |
void |
showHtml(String templatePath,
Hashtable dictionary) |
checkEnabledPermission, checkVisiblePermission, getAttribute, getParentForm, initPermissions, isRestricted, setParentFormsetComponentLocaleaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEnabled, setEnabled, setVisibleprotected CustomEditorPane htmlViewer
protected boolean horizontalScroll
protected boolean verticalScroll
protected boolean scrollable
protected String originalTemplate
protected String currentTemplate
protected Hashtable currentData
protected String currentSeparator
public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic void init(Hashtable parameters)
init in interface FormComponentinit in class IdentifiedAbstractFormComponentparameters - the Hashtable with parameters
| attribute | values | default | required | meaning |
| attr | yes | Attribute for field. | ||
| template | yes | Complete path to html template. | ||
| scroll | no | Specifies whether the component must use an scroll or not. | ||
| scrollh | no | Adjust the component to use horizontal scroll. | ||
| scrollv | no | Adjust the component to use vertical scroll. | ||
| paint | no | Fixes specified paint for viewer. | ||
| maxwidth | no | Maximum width for component. | ||
| opaque | yes | no | The opacity condition for component. By default, it is opaque. |
public void setResourceBundle(ResourceBundle resourceBundle)
InternationalizationsetResourceBundle in interface InternationalizationsetResourceBundle in class AbstractFormComponentresourceBundle - the new language bundle.public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface InternationalizationgetTextsToTranslate in class AbstractFormComponentprotected String getTranslateTemplate(ResourceBundle resourceBundle)
public void setText(String text_path)
public String getCurrentTemplate()
public Object getConstraints(LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentgetConstraints in class AbstractFormComponentparentLayout - the parent container referencepublic void clean()
public void hyperlinkUpdate(HyperlinkEvent evt)
hyperlinkUpdate in interface HyperlinkListenerpublic void setPaint(Paint paint)
public JEditorPane getViewer()
protected HtmlHelpField.ParameterInfo getParameterInfo(Object ob, String param) throws Exception
Exceptionprotected Method getMethod(Object ob, String methodName, HtmlHelpField.ParameterInfo[] parameters) throws Exception
Exceptionprotected Method getNonPublicMethod(Class c, String methodName, Class[] paramsClasss) throws Exception
ExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.