Class BasicXListUI.Actions
java.lang.Object
org.jdesktop.swingx.plaf.UIAction
org.jdesktop.swingx.plaf.basic.core.BasicXListUI.Actions
- All Implemented Interfaces:
ActionListener
,EventListener
,Action
- Enclosing class:
BasicXListUI
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
adjustScrollPositionIfNecessary
(JList list, int index, int direction) When scroll down makes selected index the last completely visible index.private void
changeSelection
(JList list, int type, int index, int direction) private void
clearSelection
(JList list) private int
getElementCount
(JList list) private int
getNextColumnIndex
(JList list, BasicXListUI ui, int amount) private int
getNextIndex
(JList list, BasicXListUI ui, int amount) private int
getNextPageIndex
(JList list, int direction) boolean
Subclasses that need to conditionalize the enabled state should override this.private void
Methods inherited from class org.jdesktop.swingx.plaf.UIAction
addPropertyChangeListener, getName, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
SELECT_PREVIOUS_COLUMN
- See Also:
-
SELECT_PREVIOUS_COLUMN_EXTEND
- See Also:
-
SELECT_PREVIOUS_COLUMN_CHANGE_LEAD
- See Also:
-
SELECT_NEXT_COLUMN
- See Also:
-
SELECT_NEXT_COLUMN_EXTEND
- See Also:
-
SELECT_NEXT_COLUMN_CHANGE_LEAD
- See Also:
-
SELECT_PREVIOUS_ROW
- See Also:
-
SELECT_PREVIOUS_ROW_EXTEND
- See Also:
-
SELECT_PREVIOUS_ROW_CHANGE_LEAD
- See Also:
-
SELECT_NEXT_ROW
- See Also:
-
SELECT_NEXT_ROW_EXTEND
- See Also:
-
SELECT_NEXT_ROW_CHANGE_LEAD
- See Also:
-
SELECT_FIRST_ROW
- See Also:
-
SELECT_FIRST_ROW_EXTEND
- See Also:
-
SELECT_FIRST_ROW_CHANGE_LEAD
- See Also:
-
SELECT_LAST_ROW
- See Also:
-
SELECT_LAST_ROW_EXTEND
- See Also:
-
SELECT_LAST_ROW_CHANGE_LEAD
- See Also:
-
SCROLL_UP
- See Also:
-
SCROLL_UP_EXTEND
- See Also:
-
SCROLL_UP_CHANGE_LEAD
- See Also:
-
SCROLL_DOWN
- See Also:
-
SCROLL_DOWN_EXTEND
- See Also:
-
SCROLL_DOWN_CHANGE_LEAD
- See Also:
-
SELECT_ALL
- See Also:
-
CLEAR_SELECTION
- See Also:
-
ADD_TO_SELECTION
- See Also:
-
TOGGLE_AND_ANCHOR
- See Also:
-
EXTEND_TO
- See Also:
-
MOVE_SELECTION_TO
- See Also:
-
-
Constructor Details
-
Actions
Actions(String name)
-
-
Method Details
-
actionPerformed
-
getElementCount
- Parameters:
list
-- Returns:
-
isEnabled
Description copied from class:UIAction
Subclasses that need to conditionalize the enabled state should override this. Be aware thatsender
may be null. -
clearSelection
-
selectAll
-
getNextPageIndex
-
changeSelection
-
adjustScrollPositionIfNecessary
When scroll down makes selected index the last completely visible index. When scroll up makes selected index the first visible index. Adjust visible rectangle respect to list's component orientation. -
getNextColumnIndex
-
getNextIndex
-