|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.DefaultHistoryModel
public class DefaultHistoryModel
| Constructor Summary | |
|---|---|
DefaultHistoryModel()
|
|
| Method Summary | |
|---|---|
void |
add(Object o)
Adds a item to this model. |
void |
addChangeListener(ChangeListener l)
Adds the listener. |
Object |
current()
Returns current object. |
protected void |
fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. |
Object |
get(int index)
Returns the item at the specified index. |
ChangeListener[] |
getChangeListeners()
Returns an array of all the change listeners registered on this DefaultSingleSelectionModel. |
int |
getIndex()
Returns the index of current item. |
boolean |
hasNext()
Determines the model has next item. |
boolean |
hasPrevious()
Determines the model has previous item. |
boolean |
isEmpty()
Determines the model is empty. |
void |
removeChangeListener(ChangeListener l)
Removes the listener. |
void |
setIndex(int index)
Sets the current index to the specifed index. |
int |
size()
Returns the size of this model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHistoryModel()
| Method Detail |
|---|
public Object current()
throws NoSuchElementException
HistoryModel
current in interface HistoryModelNoSuchElementExceptionpublic boolean isEmpty()
HistoryModel
isEmpty in interface HistoryModelpublic boolean hasNext()
HistoryModel
hasNext in interface HistoryModelpublic boolean hasPrevious()
HistoryModel
hasPrevious in interface HistoryModelpublic int size()
HistoryModel
size in interface HistoryModel
public Object get(int index)
throws IndexOutOfBoundsException
HistoryModel
get in interface HistoryModelindex - the index
IndexOutOfBoundsExceptionpublic void add(Object o)
HistoryModelo will become current item.
add in interface HistoryModelpublic int getIndex()
HistoryModel
getIndex in interface HistoryModelHistoryModel.setIndex(int)
public void setIndex(int index)
throws IndexOutOfBoundsException
HistoryModel
setIndex in interface HistoryModelindex - the index
IndexOutOfBoundsExceptionHistoryModel.getIndex()public void addChangeListener(ChangeListener l)
HistoryModel
addChangeListener in interface HistoryModell - the listenerpublic void removeChangeListener(ChangeListener l)
HistoryModel
removeChangeListener in interface HistoryModell - the listenerpublic ChangeListener[] getChangeListeners()
DefaultSingleSelectionModel.
ChangeListeners
or an empty
array if no change listeners are currently registeredaddChangeListener(javax.swing.event.ChangeListener),
removeChangeListener(javax.swing.event.ChangeListener)protected void fireStateChanged()
EventListenerList
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||