org.fife.ui.modifiabletable
Class AbstractRowHandler

java.lang.Object
  extended by org.fife.ui.modifiabletable.AbstractRowHandler
All Implemented Interfaces:
RowHandler

public abstract class AbstractRowHandler
extends java.lang.Object
implements RowHandler

A base class for RowHandler implementations.

Version:
1.0
Author:
Robert Futrell

Constructor Summary
AbstractRowHandler()
           
 
Method Summary
 boolean canModifyRow(int row)
          The default implementation always returns true, because typically ModifiableTables will allow all their rows to be modified.
 boolean canRemoveRow(int row)
          Overriden to call canModifyRow(int).
 void updateUI()
          The default implementation does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fife.ui.modifiabletable.RowHandler
getNewRowInfo
 

Constructor Detail

AbstractRowHandler

public AbstractRowHandler()
Method Detail

canModifyRow

public boolean canModifyRow(int row)
The default implementation always returns true, because typically ModifiableTables will allow all their rows to be modified. Subclasses can override.

Specified by:
canModifyRow in interface RowHandler
Parameters:
row - The row that might be modified.
Returns:
Whether the row should be modified.
See Also:
RowHandler.canRemoveRow(int)

canRemoveRow

public boolean canRemoveRow(int row)
Overriden to call canModifyRow(int). This means by default, any row that can be modified can also be removed. Subclasses can override.

Specified by:
canRemoveRow in interface RowHandler
Parameters:
row - The row that might be removed.
Returns:
Whether the row should be removed.
See Also:
RowHandler.canModifyRow(int)

updateUI

public void updateUI()
The default implementation does nothing. Subclasses can override.

Specified by:
updateUI in interface RowHandler