JAPI 0.9.0
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)
          Returns the value at the specified index.
 int getSize()
          Returns the length of the list.
 String getTitle()
          Get the title.
 Iterator<Prefs> iterator()
          Returns an iterator over a set of elements of type T.
 
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()
Returns an iterator over a set of elements of type T.

Specified by:
iterator in interface Iterable<Prefs>
Returns:
an Iterator.

getSize

public int getSize()
Returns the length of the list.

Specified by:
getSize in interface ListModel
Returns:
the length of the list

getElementAt

public Prefs getElementAt(int index)
Returns the value at the specified index.

Specified by:
getElementAt in interface ListModel
Parameters:
index - the requested index
Returns:
the value at index

JAPI
Yet another Java API
API Documentation

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