com.sygem.swing.joutlooknavbar
Class DefaultCategoryModel

java.lang.Object
  extended bycom.sygem.swing.joutlooknavbar.CategoryModel
      extended bycom.sygem.swing.joutlooknavbar.DefaultCategoryModel

public class DefaultCategoryModel
extends CategoryModel

A default implementation of a CategoryModel. One of these is created by the JOutlookNavBar to store NavBarCategory objects. Uses a Vector to store the data, and fires CategoryDataEvents to the JOutlookNavBar when categories are added or removed.

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

Version:
1.0

Constructor Summary
DefaultCategoryModel()
          Constructs the (empty) DefaultCategoryModel.
 
Method Summary
 void addCategory(NavBarCategory category)
          Adds a NavBarCategory to this data model.
 NavBarCategory[] getCategories()
          Returns an array containing all of the NavBarCategories currently present in this model.
 void removeCategory(NavBarCategory category)
          Removes a Category from this data model.
 
Methods inherited from class com.sygem.swing.joutlooknavbar.CategoryModel
addCategoryDataListener, removeAll, removeCategoryDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCategoryModel

public DefaultCategoryModel()
Constructs the (empty) DefaultCategoryModel.

Method Detail

addCategory

public void addCategory(NavBarCategory category)
Adds a NavBarCategory to this data model.

Specified by:
addCategory in class CategoryModel
Parameters:
category - The NavBarCategory to be added
See Also:
NavBarCategory

getCategories

public NavBarCategory[] getCategories()
Returns an array containing all of the NavBarCategories currently present in this model.

Specified by:
getCategories in class CategoryModel
Returns:
A NavBarCategory array
See Also:
NavBarCategory

removeCategory

public void removeCategory(NavBarCategory category)
Removes a Category from this data model.

Specified by:
removeCategory in class CategoryModel
Parameters:
category - The NavBarCategory to be removed
See Also:
NavBarCategory


Copyright © 2004 SyGem Software. All Rights Reserved.