ca.sqlpower.wabit.swingui.enterprise
Class UsersListModel

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.enterprise.UsersListModel
All Implemented Interfaces:
WabitListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.ListModel

public class UsersListModel
extends java.lang.Object
implements javax.swing.ListModel, WabitListener


Constructor Summary
UsersListModel(Group group, WabitWorkspace workspace, boolean currentMode)
           
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
           
 java.lang.Object getElementAt(int index)
           
 int getSize()
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void removeListDataListener(javax.swing.event.ListDataListener l)
           
 void transactionEnded(ca.sqlpower.util.TransactionEvent e)
          Signals a transaction has finished.
 void transactionRollback(ca.sqlpower.util.TransactionEvent e)
          Signals a transaction has finished and the events that occurred during the transaction need to be reversed or not acted upon.
 void transactionStarted(ca.sqlpower.util.TransactionEvent e)
          Called when a transaction has started.
 void wabitChildAdded(WabitChildEvent e)
          Called when a child is added to an object this listener is attached to.
 void wabitChildRemoved(WabitChildEvent e)
          Called when a child is removed from an object this listener is attached to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsersListModel

public UsersListModel(Group group,
                      WabitWorkspace workspace,
                      boolean currentMode)
Method Detail

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Specified by:
addListDataListener in interface javax.swing.ListModel

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Specified by:
removeListDataListener in interface javax.swing.ListModel

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

transactionEnded

public void transactionEnded(ca.sqlpower.util.TransactionEvent e)
Description copied from interface: WabitListener
Signals a transaction has finished. The events that occurred during the transaction should be considered one atomic operation. By the time the transaction ends in this fashion or immediately after the atomic operation should be acted upon. Some transactions may be nested inside of other transactions. In this case the transaction is finished only when the outer most transaction has completed.

Specified by:
transactionEnded in interface WabitListener
Parameters:
e - Contains the object that has finished a transaction.

transactionRollback

public void transactionRollback(ca.sqlpower.util.TransactionEvent e)
Description copied from interface: WabitListener
Signals a transaction has finished and the events that occurred during the transaction need to be reversed or not acted upon. If a transaction inside of another transaction rolls back both the inner and outer transaction will be rolled back.

Specified by:
transactionRollback in interface WabitListener
Parameters:
e - Contains the object that was rolled back and a message describing why the transaction was rolled back.

transactionStarted

public void transactionStarted(ca.sqlpower.util.TransactionEvent e)
Description copied from interface: WabitListener
Called when a transaction has started. The events fired after the transaction started until the transaction has ended or rolled back should be considered one atomic operation.

Specified by:
transactionStarted in interface WabitListener
Parameters:
e - Contains what object started a transaction and a message describing the transaction.

wabitChildAdded

public void wabitChildAdded(WabitChildEvent e)
Description copied from interface: WabitListener
Called when a child is added to an object this listener is attached to.

Specified by:
wabitChildAdded in interface WabitListener
Parameters:
e - An event describing the child added.

wabitChildRemoved

public void wabitChildRemoved(WabitChildEvent e)
Description copied from interface: WabitListener
Called when a child is removed from an object this listener is attached to.

Specified by:
wabitChildRemoved in interface WabitListener
Parameters:
e - An event describing the child removed.

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener


Copyright © 2009. All Rights Reserved.