java.lang.Object
java.util.Observable
com.cybertivity.powerjournal.framework.View
com.cybertivity.powerjournal.framework.PanelView
com.cybertivity.powerjournal.EntryView
com.cybertivity.powerjournal.MultiEntryView
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ListSelectionListener, java.awt.event.MouseListener, java.util.Observer
- public class MultiEntryView
- extends EntryView
- implements javax.swing.event.ListSelectionListener, java.awt.event.MouseListener
Title: PowerJournal
Description: $Id: MultiEntryView.java,v 1.3 2001/12/26 22:39:44 arrowood Exp $
Copyright: Copyright (c) 2001
Company: Cybertivity
- Version:
- 1.0
| Fields inherited from class com.cybertivity.powerjournal.framework.PanelView |
content |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
appName
private java.lang.String appName
guestMode
private boolean guestMode
panelTitle
private javax.swing.JPanel panelTitle
panelEntryGrid
private javax.swing.JPanel panelEntryGrid
panelControl
private javax.swing.JPanel panelControl
table
private javax.swing.JTable table
sorter
private MultiEntryView.SortFilterModel sorter
entries
private java.util.ArrayList entries
buttons
private java.util.HashMap buttons
EVENT_NEW
public static final java.lang.String EVENT_NEW
- See Also:
- Constant Field Values
EVENT_DELETE
public static final java.lang.String EVENT_DELETE
- See Also:
- Constant Field Values
EVENT_VIEW_ENTRY
public static final java.lang.String EVENT_VIEW_ENTRY
- See Also:
- Constant Field Values
EVENT_VIEW_SELECTED
public static final java.lang.String EVENT_VIEW_SELECTED
- See Also:
- Constant Field Values
MultiEntryView
public MultiEntryView(java.lang.String appNameArg,
boolean guestModeArg,
java.util.ArrayList entriesArg)
displayEntries
public void displayEntries(java.util.ArrayList entriesArg)
- Specified by:
displayEntries in class EntryView
setGuestMode
protected void setGuestMode(boolean guestModeArg)
getSelectedEntryNumber
protected java.lang.String getSelectedEntryNumber()
- Specified by:
getSelectedEntryNumber in class EntryView
createWindow
private void createWindow()
buildPanelTitle
private javax.swing.JPanel buildPanelTitle()
buildPanelControl
private javax.swing.JPanel buildPanelControl()
buildPanelEntryGrid
private javax.swing.JPanel buildPanelEntryGrid()
buildEntryGrid
private javax.swing.JTable buildEntryGrid()
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent event)
- Description copied from interface:
javax.swing.event.ListSelectionListener
- Receives notification of a javax.swing.event.ListSelectionEvent.
- Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
makeButton
private javax.swing.JButton makeButton(java.lang.String name,
java.lang.String action,
java.awt.Color color)
cleanUp
protected void cleanUp()
enableControls
protected void enableControls()
- Specified by:
enableControls in class EntryView
displayEntry
protected void displayEntry(Entry displayEntry,
boolean guestModeArg)
- Specified by:
displayEntry in class EntryView
handleModelEvent
protected void handleModelEvent(com.cybertivity.powerjournal.framework.ModelEvent event)
displayEntry
protected void displayEntry(Entry displayEntry,
boolean guestModeArg,
boolean isNewEntry)
- Specified by:
displayEntry in class EntryView
disableControls
protected void disableControls()
- Specified by:
disableControls in class EntryView
buttonsSetEnabled
private void buttonsSetEnabled(boolean enable)
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
- Specified by:
mouseClicked in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is pressed over a component.
- Specified by:
mousePressed in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is released over a component.
- Specified by:
mouseReleased in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse enters a component.
- Specified by:
mouseEntered in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse exits a component.
- Specified by:
mouseExited in interface java.awt.event.MouseListener