JAPI 0_6-alpha-2
Yet another Java API
API Documentation

net.sf.japi.swing.prefs
Class PreferencesGroup

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by net.sf.japi.swing.prefs.PreferencesGroup
All Implemented Interfaces:
Serializable, Iterable<Prefs>, ListModel

public class PreferencesGroup
extends AbstractListModel
implements Iterable<Prefs>

A PreferencesGroup is an ordered set of Prefs, for use with PreferencesPane.

Author:
Christian Hujer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
PreferencesGroup(String title, Prefs... prefs)
          Create a Preferences group.
 
Method Summary
 Prefs getElementAt(int index)
          
 int getSize()
          
 String getTitle()
          Get the title.
 Iterator<Prefs> iterator()
          
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesGroup

public PreferencesGroup(String title,
                        Prefs... prefs)
Create a Preferences group.

Parameters:
prefs - Preferences modules to initially add
title - Title for Preferences
Method Detail

getTitle

public String getTitle()
Get the title.

Returns:
title

iterator

public Iterator<Prefs> iterator()

Specified by:
iterator in interface Iterable<Prefs>

getSize

public int getSize()

Specified by:
getSize in interface ListModel

getElementAt

public Prefs getElementAt(int index)

Specified by:
getElementAt in interface ListModel

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright