|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
gui.TagPanel
This class is the panel with the tag stuff on it, like a list with some manipulative buttons, some choices, and a label.
Nested Class Summary |
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected Checkbox |
addcheckbox
The checkbox where the user can indicate whether comment should be added. |
protected Checkbox |
convertcheckbox
The checkbox where the user can indicate whether comment should be converted. |
protected List |
taglist
The list with the tags in it. |
protected TextField |
whitelines
The textfield where the user can indicate how many white lines he wants. |
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TagPanel(String label,
ActionListener listener)
Constructs and initialises a new TagPanel. |
Method Summary | |
void |
addTag(String tag)
Adds a tag to the tag list. |
void |
addTag(String tag,
int index)
Adds a tag to the tag list on the passed index. |
boolean |
getAddComment()
Returns whether the user wants to have comment added. |
boolean |
getConvertComment()
Returns whether the user wants to have their comment converted. |
int |
getNumberOfTags()
Returns the amount of tags. |
String |
getSelectedTag()
Returns the currently selected tag. |
int |
getSelectedTagIndex()
Returns the index of the currently selected tag. |
String[] |
getTags()
Returns the tags in the tag list. |
String |
getWhiteLines()
Returns the amount of white lines the user wants after their comment. |
void |
removeTag(int index)
Removes a tag from the tag list. |
void |
selectTag(int index)
Selects the tag at the passed index. |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Checkbox convertcheckbox
protected Checkbox addcheckbox
protected TextField whitelines
protected List taglist
Constructor Detail |
public TagPanel(String label, ActionListener listener)
label
- The label of this TagPanel (For example: "Class").listener
- The ActionListener for the buttons.Method Detail |
public void addTag(String tag)
tag
- The tag to be added.public void addTag(String tag, int index)
tag
- The tag to be added.index
- The index to add the passed tag on.public void removeTag(int index)
index
- The index of the tag to be removed.public int getNumberOfTags()
public int getSelectedTagIndex()
public String getSelectedTag()
public void selectTag(int index)
index
- The index of the tag to be added.public String[] getTags()
public boolean getConvertComment()
public boolean getAddComment()
public String getWhiteLines()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |