|
HTML Parser Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.htmlparser.parserapplications.filterbuilder.SubFilterList
public class SubFilterList
A helper class for lists of filters within filters.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected int |
mExtra
Padding for the drop target. |
protected Filter |
mHome
The parent filter wrapper. |
protected int |
mMax
The number of filters limit. |
protected Component |
mSpacer
The drop target spacer at the bottom of the list. |
protected String |
mTitle
The textual title for the list. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
SubFilterList(Filter home,
String title,
int max)
Creates a container panel. |
|
| Method Summary | |
|---|---|
void |
addFilter(Filter filter)
Add a filter to the container contents. |
void |
addFilter(Filter filter,
int index)
Add a filter to the container at a specific position. |
protected void |
addSpacer()
Stuff a spacer component at the end of the list. |
boolean |
canAccept()
Check if our maximum number of filters limit has been reached. |
Component[] |
getDropTargets()
Get the components in which to drop commands. |
Filter[] |
getFilters()
Return the list of filters in this container. |
void |
removeFilter(Filter filter)
Remove a filter from the container. |
void |
removeFilter(int index)
Remove a filter from the container. |
protected void |
removeSpacer()
Remove the spacer component at the end of the list. |
void |
setSelected(boolean selected)
Set the 'selected look' for the component. |
String |
toString(int indent,
int level)
Get the bytes for this command as a String. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int mExtra
protected Component mSpacer
protected Filter mHome
protected String mTitle
protected int mMax
| Constructor Detail |
|---|
public SubFilterList(Filter home,
String title,
int max)
home - The filter we belong to.title - The border title.max - The maximum number of filters in the list (0 for no limit).| Method Detail |
|---|
public void setSelected(boolean selected)
selected - If true, 'select' this component,
otherwise 'deselect' it.protected void addSpacer()
protected void removeSpacer()
public Component[] getDropTargets()
public void addFilter(Filter filter)
filter - The command to add to the container.
public void addFilter(Filter filter,
int index)
filter - The filter to add to the container.index - The index at which to add it.public void removeFilter(Filter filter)
filter - The filter to remove from the container.public void removeFilter(int index)
index - The index of the filter to remove from the container.public Filter[] getFilters()
public boolean canAccept()
true if the sublist can accept one more filter,
false otherwise.
public String toString(int indent,
int level)
indent - The number of spaces to indent a block.level - The current indentation level.
The first non-whitespace character should be at
indented indent * level spaces.
|
© 2005 Derrick Oswald Jun 10, 2006
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| HTML Parser is an open source library released under LGPL. | |