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.


Constructor Index

 o JEditList()
constructs a JList with an empty model.
 o JEditList(ListModel)
Construct a JList that displays the elements in the specified, non-null model
 o JEditList(Object[])
Construct a JList that displays the elements in the specified array.
 o JEditList(Vector)
Construct a JList that displays the elements in the specified Vector.

Method Index

 o appendClipboardItems(JEditList)
Append clipboard item(s) after last item in list.
 o beginEditing(JEditList)
Begin editing (by typing) first selected item in list, add vertical edit bar to end.
 o copySelectedItems(JEditList)
Copy all selected items into clipboard.
 o cutSelectedItems(JEditList)
Move all selected items out of list and into clipboard.
 o deleteSelectedItems(JEditList)
Delete all selected item from list.
 o finishEditing(JEditList)
Finish editing (by typing) list, remove any vertical edit bars in list.
 o getCopyright()
 o getListItems()
Gets the items in the list.
 o insertClipboardItems(JEditList)
Insert clipboard item(s) immediately before first selected item in list.
 o isKeyboardCommandsEnabled()
Get current value of keyboardCommandsEnabled flag
 o isKeystrokeJumptoEnabled()
Get current value of keystrokeJumptoEnabled flag
 o isLightWeightPopupEnabled()
Get current value of lightWeightPopupEnabled flag (direct call to popup.isLightWeightPopupEnabled)
 o isPopupMenuEnabled()
Get current value of popupMenuEnabled flag
 o isReorderingEnabled()
Get current value of reorderingEnabled flag
 o main(String[])
 o pasteClipboardItems(JEditList)
Replace first selected item with clipboard items, delete all other selected items from list.
 o redoRemember(JEditList)
Remember items in list, positions of selected items, and scroll position of list for possible subsequent redo.
 o scrollBottom(JEditList)
Scroll list so last item is at the bottom.
 o scrollPageDown(JEditList)
Scroll list so last, perhaps partially visible, item becomes the top item.
 o scrollPageUp(JEditList)
Scroll list so first, perhaps partially visible, item becomes the bottom item.
 o scrollTop(JEditList)
Scroll list so first item is at the top.
 o selectAllItems(JEditList)
Select all items in list.
 o setCopyright(String)
 o setKeyboardCommandsEnabled(boolean)
Enable or disable keyboard commands (always enabled in free version)
 o setKeystrokeJumptoEnabled(boolean)
Enable or disable keystroke jumpto feature (always enabled in free version)
 o setLightWeightPopupEnabled(boolean)
Enable or disable whether JEditList popup menu is lightweight (direct call to popup.setLightWeightPopupEnabled)
 o setListItems(String)
Sets the list items from a String of line separator - delimited items
 o setPopupMenuEnabled(boolean)
Enable or disable popup menu (always enabled in free version)
 o setReorderingEnabled(boolean)
Enable or disable list reordering (always enabled in free version)
 o sortDown(JEditList)
Sort list in down-the-page (a...z top to bottom) alphabetic order.
 o sortUp(JEditList)
Sort list in up-the-page (z...a top to bottom) alphabetic order.
 o undoLastChange(JEditList)
Restore list to state at time of last call to undoRemember, swaping state with redoRemember.
 o undoRemember(JEditList)
Remember items in list, positions of selected items, and scroll position of list for possible subsequent undo.

Constructors

 o JEditList
 public JEditList(ListModel dataModel)
Construct a JList that displays the elements in the specified, non-null model

 o JEditList
 public JEditList(Object listData[])
Construct a JList that displays the elements in the specified array.

 o JEditList
 public JEditList(Vector listData)
Construct a JList that displays the elements in the specified Vector.

 o JEditList
 public JEditList()
constructs a JList with an empty model.

Methods

 o 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.
 o 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.
 o deleteSelectedItems
 public void deleteSelectedItems(JEditList list)
Delete all selected item from list.

Parameters:
list - specifies JEditList whose selected items are to be deleted.
 o selectAllItems
 public void selectAllItems(JEditList list)
Select all items in list.

Parameters:
list - specifies JEditList in which to select all items.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o scrollTop
 public void scrollTop(JEditList list)
Scroll list so first item is at the top.

Parameters:
list - specifies JEditList to scroll to top.
 o scrollBottom
 public void scrollBottom(JEditList list)
Scroll list so last item is at the bottom.

Parameters:
list - specifies JEditList to scroll to bottom.
 o 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".
 o 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".
 o 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".
 o 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".
 o 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.
 o isPopupMenuEnabled
 public boolean isPopupMenuEnabled()
Get current value of popupMenuEnabled flag

Returns:
a boolean indicating whether popupMenu is enabled or disabled.
 o 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.
 o isKeyboardCommandsEnabled
 public boolean isKeyboardCommandsEnabled()
Get current value of keyboardCommandsEnabled flag

Returns:
a boolean indicating whether keyboardCommands is enabled or disabled.
 o 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.
 o isKeystrokeJumptoEnabled
 public boolean isKeystrokeJumptoEnabled()
Get current value of keystrokeJumptoEnabled flag

Returns:
a boolean indicating whether keystrokeJumpto is enabled or disabled.
 o 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.
 o isReorderingEnabled
 public boolean isReorderingEnabled()
Get current value of reorderingEnabled flag

Returns:
a boolean indicating whether reordering is enabled or disabled.
 o 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.
 o 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.
 o 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.
 o getListItems
 public synchronized String getListItems()
Gets the items in the list.

Returns:
a String containing items of the list separated by line separators.
 o setCopyright
 public void setCopyright(String copyright)
 o getCopyright
 public String getCopyright()
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index