All Packages Class Hierarchy This Package Previous Next Index
Class com.wildcrest.jeditlist.JEditList
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JList
|
+----com.wildcrest.jeditlist.JEditList
- public class JEditList
- extends JList
(C) Copyright 1998, Wildcrest Associates (http://www.wildcrest.com)
All rights reserved
A Swing JList component extended to provide interactive editing, reordering, and navigation.
-
JEditList()
- constructs a JList with an empty model.
-
JEditList(ListModel)
- Construct a JList that displays the elements in the specified, non-null model
-
JEditList(Object[])
- Construct a JList that displays the elements in the specified array.
-
JEditList(Vector)
- Construct a JList that displays the elements in the specified Vector.
-
appendClipboardItems(JEditList)
- Append clipboard item(s) after last item in list.
-
beginEditing(JEditList)
- Begin editing (by typing) first selected item in list, add vertical edit bar to end.
-
copySelectedItems(JEditList)
- Copy all selected items into clipboard.
-
cutSelectedItems(JEditList)
- Move all selected items out of list and into clipboard.
-
deleteSelectedItems(JEditList)
- Delete all selected item from list.
-
finishEditing(JEditList)
- Finish editing (by typing) list, remove any vertical edit bars in list.
-
getCopyright()
-
-
getListItems()
- Gets the items in the list.
-
insertClipboardItems(JEditList)
- Insert clipboard item(s) immediately before first selected item in list.
-
isKeyboardCommandsEnabled()
- Get current value of keyboardCommandsEnabled flag
-
isKeystrokeJumptoEnabled()
- Get current value of keystrokeJumptoEnabled flag
-
isLightWeightPopupEnabled()
- Get current value of lightWeightPopupEnabled flag (direct call to popup.isLightWeightPopupEnabled)
-
isPopupMenuEnabled()
- Get current value of popupMenuEnabled flag
-
isReorderingEnabled()
- Get current value of reorderingEnabled flag
-
main(String[])
-
-
pasteClipboardItems(JEditList)
- Replace first selected item with clipboard items, delete all other selected items from list.
-
redoRemember(JEditList)
- Remember items in list, positions of selected items, and scroll position of list for possible subsequent redo.
-
scrollBottom(JEditList)
- Scroll list so last item is at the bottom.
-
scrollPageDown(JEditList)
- Scroll list so last, perhaps partially visible, item becomes the top item.
-
scrollPageUp(JEditList)
- Scroll list so first, perhaps partially visible, item becomes the bottom item.
-
scrollTop(JEditList)
- Scroll list so first item is at the top.
-
selectAllItems(JEditList)
- Select all items in list.
-
setCopyright(String)
-
-
setKeyboardCommandsEnabled(boolean)
- Enable or disable keyboard commands (always enabled in free version)
-
setKeystrokeJumptoEnabled(boolean)
- Enable or disable keystroke jumpto feature (always enabled in free version)
-
setLightWeightPopupEnabled(boolean)
- Enable or disable whether JEditList popup menu is lightweight (direct call to popup.setLightWeightPopupEnabled)
-
setListItems(String)
- Sets the list items from a String of line separator - delimited items
-
setPopupMenuEnabled(boolean)
- Enable or disable popup menu (always enabled in free version)
-
setReorderingEnabled(boolean)
- Enable or disable list reordering (always enabled in free version)
-
sortDown(JEditList)
- Sort list in down-the-page (a...z top to bottom) alphabetic order.
-
sortUp(JEditList)
- Sort list in up-the-page (z...a top to bottom) alphabetic order.
-
undoLastChange(JEditList)
- Restore list to state at time of last call to undoRemember, swaping state with redoRemember.
-
undoRemember(JEditList)
- Remember items in list, positions of selected items, and scroll position of list for possible subsequent undo.
JEditList
public JEditList(ListModel dataModel)
- Construct a JList that displays the elements in the specified, non-null model
JEditList
public JEditList(Object listData[])
- Construct a JList that displays the elements in the specified array.
JEditList
public JEditList(Vector listData)
- Construct a JList that displays the elements in the specified Vector.
JEditList
public JEditList()
- constructs a JList with an empty model.
beginEditing
public void beginEditing(JEditList list)
- Begin editing (by typing) first selected item in list, add vertical edit bar to end.
- Parameters:
- list - specifies JEditList to be edited.
finishEditing
public void finishEditing(JEditList list)
- Finish editing (by typing) list, remove any vertical edit bars in list.
- Parameters:
- list - specifies JEditList to end editing.
deleteSelectedItems
public void deleteSelectedItems(JEditList list)
- Delete all selected item from list.
- Parameters:
- list - specifies JEditList whose selected items are to be deleted.
selectAllItems
public void selectAllItems(JEditList list)
- Select all items in list.
- Parameters:
- list - specifies JEditList in which to select all items.
insertClipboardItems
public void insertClipboardItems(JEditList list)
- Insert clipboard item(s) immediately before first selected item in list.
- Parameters:
- list - specifies JEditList in which to insert clipboard items.
appendClipboardItems
public void appendClipboardItems(JEditList list)
- Append clipboard item(s) after last item in list.
- Parameters:
- list - specifies JEditList in which to insert clipboard items at end.
copySelectedItems
public void copySelectedItems(JEditList list)
- Copy all selected items into clipboard.
- Parameters:
- list - specifies JEditList whose selected items are to be copied to clipboard.
cutSelectedItems
public void cutSelectedItems(JEditList list)
- Move all selected items out of list and into clipboard.
- Parameters:
- list - specifies JEditList whose selected items are to be moved from the list to the clipboard.
pasteClipboardItems
public void pasteClipboardItems(JEditList list)
- Replace first selected item with clipboard items, delete all other selected items from list.
- Parameters:
- list - specifies JEditList into which clipboard items are to be pasted replacing selected items.
undoRemember
public void undoRemember(JEditList list)
- Remember items in list, positions of selected items, and scroll position of list for possible subsequent undo.
- Parameters:
- list - specifies JEditList whose state is to be remembered for possible subsequent undo.
redoRemember
public void redoRemember(JEditList list)
- Remember items in list, positions of selected items, and scroll position of list for possible subsequent redo.
- Parameters:
- list - specifies JEditList whose state is to be remembered for possible subsequent redo.
undoLastChange
public void undoLastChange(JEditList list)
- Restore list to state at time of last call to undoRemember, swaping state with redoRemember.
- Parameters:
- list - specifies JEditList whose last remembered change is to be undone.
scrollTop
public void scrollTop(JEditList list)
- Scroll list so first item is at the top.
- Parameters:
- list - specifies JEditList to scroll to top.
scrollBottom
public void scrollBottom(JEditList list)
- Scroll list so last item is at the bottom.
- Parameters:
- list - specifies JEditList to scroll to bottom.
scrollPageDown
public void scrollPageDown(JEditList list)
- Scroll list so last, perhaps partially visible, item becomes the top item.
- Parameters:
- list - specifies JEditList to scroll down one "page".
scrollPageUp
public void scrollPageUp(JEditList list)
- Scroll list so first, perhaps partially visible, item becomes the bottom item.
- Parameters:
- list - specifies JEditList to scroll up one "page".
sortUp
public void sortUp(JEditList list)
- Sort list in up-the-page (z...a top to bottom) alphabetic order.
- Parameters:
- list - specifies JEditList to sort "up".
sortDown
public void sortDown(JEditList list)
- Sort list in down-the-page (a...z top to bottom) alphabetic order.
- Parameters:
- list - specifies JEditList to sort "down".
setPopupMenuEnabled
public void setPopupMenuEnabled(boolean popupMenuEnabled)
- Enable or disable popup menu (always enabled in free version)
- Parameters:
- popupMenuEnabled - specifies whether popupMenu is enabled or disabled.
isPopupMenuEnabled
public boolean isPopupMenuEnabled()
- Get current value of popupMenuEnabled flag
- Returns:
- a boolean indicating whether popupMenu is enabled or disabled.
setKeyboardCommandsEnabled
public void setKeyboardCommandsEnabled(boolean keyboardCommandsEnabled)
- Enable or disable keyboard commands (always enabled in free version)
- Parameters:
- keyboardCommandsEnabled - specifies whether keyboardCommands are enabled or disabled.
isKeyboardCommandsEnabled
public boolean isKeyboardCommandsEnabled()
- Get current value of keyboardCommandsEnabled flag
- Returns:
- a boolean indicating whether keyboardCommands is enabled or disabled.
setKeystrokeJumptoEnabled
public void setKeystrokeJumptoEnabled(boolean keystrokeJumptoEnabled)
- Enable or disable keystroke jumpto feature (always enabled in free version)
- Parameters:
- keystrokeJumptoEnabled - specifies whether keystrokeJumpto is enabled or disabled.
isKeystrokeJumptoEnabled
public boolean isKeystrokeJumptoEnabled()
- Get current value of keystrokeJumptoEnabled flag
- Returns:
- a boolean indicating whether keystrokeJumpto is enabled or disabled.
setReorderingEnabled
public void setReorderingEnabled(boolean reorderingEnabled)
- Enable or disable list reordering (always enabled in free version)
- Parameters:
- reorderingEnabled - specifies whether reordering is enabled or disabled.
isReorderingEnabled
public boolean isReorderingEnabled()
- Get current value of reorderingEnabled flag
- Returns:
- a boolean indicating whether reordering is enabled or disabled.
setLightWeightPopupEnabled
public void setLightWeightPopupEnabled(boolean lightWeightPopupEnabled)
- Enable or disable whether JEditList popup menu is lightweight (direct call to popup.setLightWeightPopupEnabled)
- Parameters:
- lightWeightPopupEnabled - specifies whether lightweight popup is enabled or disabled.
isLightWeightPopupEnabled
public boolean isLightWeightPopupEnabled()
- Get current value of lightWeightPopupEnabled flag (direct call to popup.isLightWeightPopupEnabled)
- Returns:
- a boolean indicating whether lightweight popup is enabled or disabled.
setListItems
public void setListItems(String items)
- Sets the list items from a String of line separator - delimited items
- Parameters:
- items - a String of line separator - delimited items to replace previous contents of list.
getListItems
public synchronized String getListItems()
- Gets the items in the list.
- Returns:
- a String containing items of the list separated by line separators.
setCopyright
public void setCopyright(String copyright)
getCopyright
public String getCopyright()
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index