public class FilterIconWithLabel extends javax.swing.JPanel implements IOpenIcon
This class provides a combination between a text label and a string filter icon for a table.
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private FilterIcon |
filterIcon |
private static long |
serialVersionUID |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
FilterIconWithLabel(java.lang.String labelStr,
java.awt.Window owner)
Creates a new panel, consisting of a text label and a filter icon.
|
FilterIconWithLabel(java.lang.String labelStr,
java.awt.Window owner,
boolean vertical)
Creates a new panel, consisting of a text label and a filter icon.
|
Modifier and Type | Method and Description |
---|---|
void |
addRowSorterListener(javax.swing.event.RowSorterListener listener)
Adds a
RowSorterListener to the row sorter. |
java.lang.String |
getToolTipText()
Delegates the call to the
FilterIcon . |
private void |
init(java.lang.String labelStr,
boolean vertical)
Creates the panel and places text and icon inside.
|
boolean |
isFilterLayerOpen()
Indicates, if the string filter layer is currently open or not.
|
void |
open()
Opens the associated string filter layer.
|
void |
rememberKeyBindingId(java.lang.String keyBindingId,
java.lang.String ttType)
Delegates the method call to the
FilterIcon . |
void |
setTable(MidicaTable table)
Sets the table that’s filtered by the filter.
|
void |
setToolTipText(java.lang.String tt)
Delegates the call to the
FilterIcon . |
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, 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, 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, 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, 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, transferFocusUpCycle
private static final long serialVersionUID
private FilterIcon filterIcon
public FilterIconWithLabel(java.lang.String labelStr, java.awt.Window owner)
Creates a new panel, consisting of a text label and a filter icon. Text and icon are placed horizontally (in a row).
labelStr
- The content of the text label.owner
- The window containing the text, the icon and the table.public FilterIconWithLabel(java.lang.String labelStr, java.awt.Window owner, boolean vertical)
Creates a new panel, consisting of a text label and a filter icon. Text and icon are placed either horizontally (in a row) or vertically (in a column).
labelStr
- The content of the text label.owner
- The window containing the text, the icon and the table.vertical
- true for placing text and icon in a column, false for placing them in a row.private void init(java.lang.String labelStr, boolean vertical)
Creates the panel and places text and icon inside.
labelStr
- The content of the text label.vertical
- true for placing text and icon in a column, false for placing them in a row.public void setTable(MidicaTable table)
Sets the table that’s filtered by the filter.
table
- Table to be filtered.public void addRowSorterListener(javax.swing.event.RowSorterListener listener)
Adds a RowSorterListener
to the row sorter.
listener
- The listener to be added.public boolean isFilterLayerOpen()
Indicates, if the string filter layer is currently open or not.
public void rememberKeyBindingId(java.lang.String keyBindingId, java.lang.String ttType)
Delegates the method call to the FilterIcon
.
rememberKeyBindingId
in interface IOpenIcon
keyBindingId
- the key binding idttType
- the key binding type idpublic java.lang.String getToolTipText()
Delegates the call to the FilterIcon
.
getToolTipText
in class javax.swing.JComponent
public void setToolTipText(java.lang.String tt)
Delegates the call to the FilterIcon
.
setToolTipText
in class javax.swing.JComponent
tt
- tool tip text