public abstract class BaseVersionOperationPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
BORDER_LOOK_FLAT_CHANGELIST |
static int |
BORDER_LOOK_FLAT_HISTORY |
static int |
BORDER_LOOK_NOT_FLAT |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
BaseVersionOperationPanel() |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListener(java.awt.event.MouseListener ml) |
protected abstract void |
addMouseListenerImpl(java.awt.event.MouseListener ml) |
void |
addSelectionListener(javax.swing.event.ChangeListener listener)
Add a listener for changes in selection.
|
protected abstract void |
attachSelectionListener() |
void |
autoSizeColumnsToFit()
Deprecated.
|
protected abstract void |
createComponents() |
java.lang.Object |
depersistVisualSettings(java.lang.String persistenceKey) |
void |
fireCategoriesChanged() |
protected void |
fireSelectionChange() |
java.awt.Component |
getFocusComponent() |
protected abstract java.awt.Component |
getInternalComponent() |
VersionOperationModel |
getModel()
Return the VersionOperationModel used for this panel
|
java.awt.Component |
getOptionsComponent()
Get the opetions component.
|
int |
getOptionsDividerLocation() |
protected abstract javax.swing.JScrollPane |
getScrollPane() |
abstract Element[] |
getSelection()
Get the current selection.
|
NiceTable |
getTable()
Deprecated.
|
protected abstract void |
initializePreferredSize() |
void |
installModel(VersionOperationModel model)
Install a VersionOperationModel into this panel.
|
protected abstract void |
installModelImpl(VersionOperationModel model) |
abstract boolean |
isItemAtPosition(java.awt.Point p) |
boolean |
isOptionsResizeable() |
boolean |
isOptionsVisible()
Get whether the options component is visible.
|
void |
persistVisualSettings(java.lang.String persistenceKey) |
void |
reapplySort()
Deprecated.
|
void |
removeMouseListener(java.awt.event.MouseListener ml) |
protected abstract void |
removeMouseListenerImpl(java.awt.event.MouseListener ml) |
void |
removeSelectionListener(javax.swing.event.ChangeListener listener)
Remove a listener
|
abstract void |
selectAll() |
protected abstract void |
selectOnRightClick(java.awt.event.MouseEvent me) |
void |
setBorderLook(int look)
Set whether the border is painted.
|
void |
setCategorizer(VersionOperationCategorizer categorizer) |
void |
setCategoryCache(java.util.Map<VCSHashURL,java.lang.String> categoryCache) |
void |
setColumnAutoResizeMode(int mode) |
void |
setDefaultCategory(java.lang.String category) |
void |
setDefaultRenderer(java.lang.Class<?> columnClass,
javax.swing.table.TableCellRenderer renderer)
Deprecated.
|
void |
setOptionsComponent(java.awt.Component c)
Set the component that contains option controls for this operation
|
void |
setOptionsDividerLocation(int location) |
void |
setOptionsLocation(int location)
Set the location of the options component.
|
void |
setOptionsResizeable(boolean optionsResizeable) |
void |
setOptionsVisible(boolean isVisible)
Set whether the options component is visible.
|
void |
setSelectOnRightClick(boolean isSet) |
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, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int BORDER_LOOK_NOT_FLAT
public static final int BORDER_LOOK_FLAT_CHANGELIST
public static final int BORDER_LOOK_FLAT_HISTORY
@Deprecated public void autoSizeColumnsToFit()
@Deprecated public void reapplySort()
@Deprecated public NiceTable getTable()
public void setColumnAutoResizeMode(int mode)
protected abstract void createComponents()
protected abstract javax.swing.JScrollPane getScrollPane()
protected abstract void initializePreferredSize()
protected abstract void attachSelectionListener()
public final void addMouseListener(java.awt.event.MouseListener ml)
addMouseListener
in class java.awt.Component
protected abstract void addMouseListenerImpl(java.awt.event.MouseListener ml)
public final void removeMouseListener(java.awt.event.MouseListener ml)
removeMouseListener
in class java.awt.Component
protected abstract void removeMouseListenerImpl(java.awt.event.MouseListener ml)
public void setOptionsResizeable(boolean optionsResizeable)
public boolean isOptionsResizeable()
public void setOptionsComponent(java.awt.Component c)
c
- a component containing option controls. May be null to clear
the current control.public java.awt.Component getOptionsComponent()
public void setOptionsLocation(int location)
public final void setOptionsVisible(boolean isVisible)
isVisible
- if true, the options component will be displayed, if
false it will be hidden.public final boolean isOptionsVisible()
public VersionOperationModel getModel()
public void setBorderLook(int look)
look
- if true, the border will be painted.public void installModel(VersionOperationModel model)
model
- the model to install.protected abstract void installModelImpl(VersionOperationModel model)
public final void addSelectionListener(javax.swing.event.ChangeListener listener)
listener
- listener to addpublic final void removeSelectionListener(javax.swing.event.ChangeListener listener)
listener
- listener to removepublic abstract Element[] getSelection()
public abstract void selectAll()
protected abstract void selectOnRightClick(java.awt.event.MouseEvent me)
public void setSelectOnRightClick(boolean isSet)
public final int getOptionsDividerLocation()
public final void setOptionsDividerLocation(int location)
protected abstract java.awt.Component getInternalComponent()
protected final void fireSelectionChange()
public java.awt.Component getFocusComponent()
public abstract boolean isItemAtPosition(java.awt.Point p)
public void setCategorizer(VersionOperationCategorizer categorizer)
public void setCategoryCache(java.util.Map<VCSHashURL,java.lang.String> categoryCache)
public void fireCategoriesChanged()
public void setDefaultCategory(java.lang.String category)
public java.lang.Object depersistVisualSettings(java.lang.String persistenceKey)
public void persistVisualSettings(java.lang.String persistenceKey)
@Deprecated public void setDefaultRenderer(java.lang.Class<?> columnClass, javax.swing.table.TableCellRenderer renderer)