|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--kawigi.config.TagLibEditorModel
A class that maps a TagLibrary to a JComboBox. This is used by the editor to provide editing functionality.
| Field Summary | |
protected kawigi.template.TagLibrary |
taglib
The currently opened TagLibrary. |
| Constructor Summary | |
TagLibEditorModel(kawigi.template.TagLibrary taglib)
Creates a TagLibEditorModel instance mapping to the given TagLibrary. |
|
| Method Summary | |
void |
addElement(java.lang.Object obj)
Adds a new MethodInfo to the TagLibrary. |
void |
addListDataListener(javax.swing.event.ListDataListener l)
Adds the ListDataListener to the list of listeners that will be notified of changes to this model. |
protected void |
fireEvent()
Fires a CONTENTS_CHANGED event to all the listeners to this model. |
java.lang.Object |
getElementAt(int index)
Returns the element in the list at the given index. |
java.lang.Object |
getSelectedItem()
Returns the object designated as being selected. |
int |
getSize()
Returns the number of elements to be rendered in the JComboBox, which is one more than the number of Tags in the TagLibrary. |
kawigi.template.TagLibrary |
getTagLibrary()
Returns the TagLibrary that is mapped from this editor model. |
void |
insertElementAt(java.lang.Object obj,
int index)
Adds a new MethodInfo to the TagLibrary. |
void |
removeElement(java.lang.Object obj)
Removes a MethodInfo from the TagLibrary. |
void |
removeElementAt(int index)
Removes the indexth element from the TagLibrary, as mapped to the JComboBox. |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
Removes a ListDataListener so that it will no longer receive change events from this model. |
void |
setSelectedItem(java.lang.Object anItem)
Changes which object is designated as being selected. |
void |
setTagLibrary(kawigi.template.TagLibrary lib)
Changes the TagLibrary represented by this TagLibEditorModel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected kawigi.template.TagLibrary taglib
| Constructor Detail |
public TagLibEditorModel(kawigi.template.TagLibrary taglib)
| Method Detail |
public kawigi.template.TagLibrary getTagLibrary()
public void setTagLibrary(kawigi.template.TagLibrary lib)
public void addElement(java.lang.Object obj)
addElement in interface javax.swing.MutableComboBoxModel
public void insertElementAt(java.lang.Object obj,
int index)
insertElementAt in interface javax.swing.MutableComboBoxModelpublic void removeElement(java.lang.Object obj)
removeElement in interface javax.swing.MutableComboBoxModelpublic void removeElementAt(int index)
removeElementAt in interface javax.swing.MutableComboBoxModelpublic java.lang.Object getSelectedItem()
getSelectedItem in interface javax.swing.ComboBoxModelpublic void setSelectedItem(java.lang.Object anItem)
setSelectedItem in interface javax.swing.ComboBoxModelpublic void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic int getSize()
getSize in interface javax.swing.ListModelpublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModelprotected void fireEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||