public class AuditLogPanel extends javax.swing.JPanel implements ContextMenuListener, Controller, javax.swing.event.TreeSelectionListener, AuditTreeTable.RowActionListener, TransformerListener
Audit log page
.javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
ABOUT_CID |
static int |
COLLAPSE_ALL_CID |
static int |
DEFAULT_FIX_CID |
static int |
EXPAND_ALL_CID |
static int |
EXPORT_CID |
static int |
FIX_CID |
static int |
GOTO_SOURCE_CID |
static int |
HIDE_ISSUES_CID |
static int |
UNHIDE_ALL_ISSUES_CID |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
UPDATE_FROM_ACTION_PERFORMED, UPDATE_FROM_ACTIVE_VIEW_CHANGED, UPDATE_FROM_UNDO, UPDATE_FROM_USER_EXTENSION, UPDATE_FROM_VIEW_SELECTION_CHANGED
Modifier and Type | Method and Description |
---|---|
void |
addMouseListener(java.awt.event.MouseListener listener) |
void |
auditStarted(AuditModel model,
java.util.List<Metric> columns,
java.lang.Object root) |
void |
auditStopped(AuditModel model,
boolean cancelled) |
void |
clear() |
AuditModel |
getModel() |
AuditTreeTable |
getTable() |
Toolbar |
getToolBar() |
java.awt.Component |
getTopComponent() |
boolean |
handleDefaultAction(Context context)
Called when the user double clicks on an item that has a
context menu.
|
boolean |
handleEvent(IdeAction action,
Context context)
This method is called when a user interaction with a
View
triggers the execution of a command. |
void |
menuWillHide(ContextMenu menu)
This method is called just before a showing context menu is
dismissed.
|
void |
menuWillShow(ContextMenu menu)
Called just before the context menu is shown.
|
void |
modelSaved(ModelAdapter model)
Reports that a model was saved.
|
void |
modelWritable(ModelAdapter model)
Reports that a model was made writable.
|
void |
removeMouseListener(java.awt.event.MouseListener listener) |
void |
rowActionPerformed(AuditTreeTable table,
int row) |
boolean |
saveFailed(java.lang.Throwable exception,
ModelAdapter model,
java.lang.String label)
Reports that saving a model failed.
|
void |
setLocationRelativeTo(javax.swing.JDialog dialog,
java.awt.Component c) |
java.lang.String |
toString() |
boolean |
transformFailed(java.lang.Throwable exception,
Violation violation,
Transform transform,
java.lang.String label)
Reports that a transform failed.
|
boolean |
update(IdeAction action,
Context context)
This method updates the enabled status of the specified action within the
specified context.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e) |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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
add, 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, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, 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, 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, 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, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int EXPORT_CID
public static final int EXPAND_ALL_CID
public static final int COLLAPSE_ALL_CID
public static final int GOTO_SOURCE_CID
public static final int ABOUT_CID
public static final int FIX_CID
public static final int DEFAULT_FIX_CID
public static final int HIDE_ISSUES_CID
public static final int UNHIDE_ALL_ISSUES_CID
public AuditModel getModel()
public java.awt.Component getTopComponent()
public Toolbar getToolBar()
public void clear()
public void auditStarted(AuditModel model, java.util.List<Metric> columns, java.lang.Object root)
public void auditStopped(AuditModel model, boolean cancelled)
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
public void rowActionPerformed(AuditTreeTable table, int row)
rowActionPerformed
in interface AuditTreeTable.RowActionListener
public void addMouseListener(java.awt.event.MouseListener listener)
addMouseListener
in class java.awt.Component
public void removeMouseListener(java.awt.event.MouseListener listener)
removeMouseListener
in class java.awt.Component
public boolean handleDefaultAction(Context context)
ContextMenuListener
true
; otherwise it must return
false
. Processing of handleDefaultAction
stops on the first return of true
.handleDefaultAction
in interface ContextMenuListener
context
- the context on which the default action needs
to occur.public void menuWillHide(ContextMenu menu)
ContextMenuListener
ContextMenuListener.menuWillShow(oracle.ide.controller.ContextMenu)
, since the IDE takes care of that
automatically.menuWillHide
in interface ContextMenuListener
menu
- the context menu being hiddenpublic void menuWillShow(ContextMenu menu)
ContextMenuListener
menuWillShow
in interface ContextMenuListener
menu
- the context menu being shownpublic boolean update(IdeAction action, Context context)
Controller
update
in interface Controller
action
- action whose command is to be executed.context
- the current contextpublic boolean handleEvent(IdeAction action, Context context)
Controller
View
triggers the execution of a command.handleEvent
in interface Controller
action
- action whose command is to be executed.public void setLocationRelativeTo(javax.swing.JDialog dialog, java.awt.Component c)
public java.lang.String toString()
toString
in class java.awt.Component
public void modelWritable(ModelAdapter model)
TransformerListener
modelWritable
in interface TransformerListener
public boolean transformFailed(java.lang.Throwable exception, Violation violation, Transform transform, java.lang.String label)
TransformerListener
transformFailed
in interface TransformerListener
exception
- The exception that indicated failure.violation
- The violation being associated with the transform.transform
- The transform that failed.label
- The label for the transform transaction.public void modelSaved(ModelAdapter model)
TransformerListener
modelSaved
in interface TransformerListener
model
- The model that was saved.public boolean saveFailed(java.lang.Throwable exception, ModelAdapter model, java.lang.String label)
TransformerListener
saveFailed
in interface TransformerListener
exception
- The exception that indicated failure.model
- The model which could not be saved.label
- The label for the transform transaction.public AuditTreeTable getTable()