|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.bea.wlpi.common.plugin.PluginPanel
Defines a plugin-provided GUI component. The component is hosted in a dialog constructed by the design-time client.
PluginData
, Serialized FormInner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class javax.swing.JComponent |
accessibleContext,
listenerList,
TOOL_TIP_TEXT_KEY,
ui,
UNDEFINED_CONDITION,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT,
WHEN_FOCUSED,
WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
protected |
PluginPanel(java.util.Locale lc,
java.lang.String helpID)
Create a new PluginPanel . |
Method Summary | |
void |
exceptionHandlerRenamed(java.lang.String oldName,
java.lang.String newName)
Cascade updates to the specified exception handler. |
PluginPanelContext |
getContext()
Return the parent component in which this panel is displayed. |
PluginData |
getData()
Return the plugin-defined data. |
java.lang.String |
getHelpIDString()
Return the help topic ID for the plugin panel. |
java.lang.String |
getString(java.lang.String key)
Get a localized display string. |
java.lang.String |
getString(java.lang.String key,
java.lang.Object[] args)
Get a localized message, formatted with the supplied arguments. |
abstract void |
load()
Instructs the panel to initialize its UI controls from the plugin-provided data. |
boolean |
referencesExceptionHandler(java.lang.String handler)
Check whether the panel references the specified exception handler. |
boolean |
referencesVariable(java.lang.String var)
Check whether the panel references the specified variable. |
void |
setContext(PluginPanelContext context,
PluginData data)
Set the operating context for the panel. |
void |
setResourceBundle(java.lang.String bundleName)
Set the resource bundle to use when localizing strings and messages. |
abstract boolean |
validateAndSave()
Instructs the panel to validate its UI control values and save them into the plugin-provided data. |
void |
variableRenamed(java.lang.String oldName,
java.lang.String newName)
Cascade updates to the specified workflow variable. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext,
getUIClassID,
paramString,
updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
addPropertyChangeListener,
addVetoableChangeListener,
computeVisibleRect,
contains,
createToolTip,
disable,
enable,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getActionMap,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInputMap,
getInputMap,
getInputVerifier,
getInsets,
getInsets,
getListeners,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVerifyInputWhenFocusTarget,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
hide,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isMaximumSizeSet,
isMinimumSizeSet,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isPreferredSizeSet,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
print,
printAll,
printBorder,
printChildren,
printComponent,
processComponentKeyEvent,
processFocusEvent,
processKeyBinding,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
removePropertyChangeListener,
removeVetoableChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setActionMap,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setInputMap,
setInputVerifier,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVerifyInputWhenFocusTarget,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addHierarchyBoundsListener,
addHierarchyListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disableEvents,
dispatchEvent,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphicsConfiguration,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
processComponentEvent,
processHierarchyBoundsEvent,
processHierarchyEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeHierarchyBoundsListener,
removeHierarchyListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
protected PluginPanel(java.util.Locale lc, java.lang.String helpID)
PluginPanel
.
lc
- The locale for the panel. Can be retrieved later by calling
getLocale()
.helpID
- The help topic ID for the panel. This must match one of
the JavaHelp keys or HTML file names provided by the plugin's online help set.Method Detail |
public final PluginPanelContext getContext()
public final PluginData getData()
public java.lang.String getHelpIDString()
public java.lang.String getString(java.lang.String key)
setResourceBundle(java.lang.String)
.
key
- The resource key.getString(String, Object[])
,
setResourceBundle(java.lang.String)
public java.lang.String getString(java.lang.String key, java.lang.Object[] args)
setResourceBundle(java.lang.String)
. This method uses this object's
ClassLoader
to retrieve the string resource from the
nominated resource properties file in its plugin-ejb.jar
file.
key
- The resource key.args
- Arguments to be inserted into the message text.getString(String)
,
setResourceBundle(java.lang.String)
public abstract void load()
getData()
to access the
plugin data, cast the result to the corresponding plugin-defined class,
then call the appropriate getter methods to retrieve the display values.
The framework ensures that this method is called exactly once per modal
display cycle. Plugins must not call this method.
validateAndSave()
public final void setContext(PluginPanelContext context, PluginData data)
owner
and data
parameters in the corresponding member variables. Plugins must not call
this method.
context
- The dialog context in which the panel is being displayed.data
- The plugin-supplied data.null
.public void setResourceBundle(java.lang.String bundleName)
bundleName
- The name of the resource bundle from which to retrieve
the localized strings and messages.getString(String)
,
getString(String, Object[])
public void exceptionHandlerRenamed(java.lang.String oldName, java.lang.String newName)
oldName
- The exception handler's previous name.newName
- The exception handler's new name.referencesExceptionHandler(java.lang.String)
public boolean referencesExceptionHandler(java.lang.String handler)
handler
- The name of the exception handler.true
if the panel references the handler.exceptionHandlerRenamed(java.lang.String, java.lang.String)
public boolean referencesVariable(java.lang.String var)
var
- The name of the variable.true
if the panel references the variable.variableRenamed(java.lang.String, java.lang.String)
public abstract boolean validateAndSave()
getData()
to
access the plugin data, cast the result to the corresponding
plugin-defined class, then call the appropriate setter methods to save
the display values. Plugins that use the default event watch
registration and correlation scheme should check in their implementation
of this method that a suitable event key is defined, by calling
PluginPanelContext.checkEventKey(java.lang.String, java.lang.String, boolean)
. If the latter call returns
PluginPanelContext.EVENT_KEY_NOT_EXISTS
,
validateAndSave
should return false
.
load()
public void variableRenamed(java.lang.String oldName, java.lang.String newName)
oldName
- The variable's old name.newName
- The variable's new name.referencesVariable(java.lang.String)
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |