com.sygem.swing.joutlooknavbar
Class CategoryModel

java.lang.Object
  extended bycom.sygem.swing.joutlooknavbar.CategoryModel
Direct Known Subclasses:
DefaultCategoryModel

public abstract class CategoryModel
extends java.lang.Object

Abstract class specifying the methods needed to implement a JOutlookNavBar data model.

The CategoryDataListeners are also handled by this class.

Title: JOutlookNavBar
Description: A Swing component simulating Outlook's Nav Bar
Copyright: Copyright (c) 2004
Company: SyGem Software

Version:
1.0

Constructor Summary
CategoryModel()
           
 
Method Summary
abstract  void addCategory(NavBarCategory category)
          Abstract method for adding categories to the model.
 void addCategoryDataListener(CategoryDataListener l)
          Adds a CategoryDataListener to this model.
abstract  NavBarCategory[] getCategories()
          Abstract method for retrieving all entries from the JOutlookNavBar data model.
 void removeAll()
          Removes all categories from this model.
abstract  void removeCategory(NavBarCategory category)
          Abstract method for removing categories from the model.
 void removeCategoryDataListener(CategoryDataListener l)
          Removes a CategoryDataListener from this model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryModel

public CategoryModel()
Method Detail

addCategory

public abstract void addCategory(NavBarCategory category)
Abstract method for adding categories to the model. Should fire a CategoryDataEvent.

Parameters:
category - The NavBarCategory to add to this model
See Also:
NavBarCategory

addCategoryDataListener

public void addCategoryDataListener(CategoryDataListener l)
Adds a CategoryDataListener to this model. This listener will be informed every time the data in the model is changed.

Parameters:
l - The CategoryDataListener to add
See Also:
CategoryDataListener

getCategories

public abstract NavBarCategory[] getCategories()
Abstract method for retrieving all entries from the JOutlookNavBar data model.

Returns:
An array of NavBarCategory objects
See Also:
NavBarCategory

removeAll

public void removeAll()
Removes all categories from this model. As it calls removeCategory for each category in the model, multiple CategoryDataEvent's may be generated.

See Also:
removeCategory(NavBarCategory), NavBarCategory

removeCategory

public abstract void removeCategory(NavBarCategory category)
Abstract method for removing categories from the model. Should fire a CategoryDataEvent.

Parameters:
category - NavBarCategory
See Also:
NavBarCategory

removeCategoryDataListener

public void removeCategoryDataListener(CategoryDataListener l)
Removes a CategoryDataListener from this model.

Parameters:
l - The CategoryDataListener to remove
See Also:
CategoryDataListener


Copyright © 2004 SyGem Software. All Rights Reserved.