|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.util.DefaultStringIconOption
public class DefaultStringIconOption
Default implementation of the StringIconOption interface which is
used in the default dialog components itself.
| Constructor Summary | |
|---|---|
DefaultStringIconOption(String text)
Constructor for class DialogComponentStringSelection.StringOption without icon. |
|
DefaultStringIconOption(String text,
Icon icon)
Constructor for class DialogComponentStringSelection.StringOption. |
|
| Method Summary | |
|---|---|
static StringIconOption[] |
createOptionArray(Collection<String> items)
Helper method to create a StringIconOption array from a
String Collection. |
boolean |
equals(Object obj)
|
Icon |
getIcon()
|
String |
getText()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultStringIconOption(String text)
text - the text to display
public DefaultStringIconOption(String text,
Icon icon)
text - the text to displayicon - the optional icon to display| Method Detail |
|---|
public Icon getIcon()
getIcon in interface StringIconOptionIcon to render or null if no icon
should be renderedpublic String getText()
getText in interface StringIconOptionnullpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static StringIconOption[] createOptionArray(Collection<String> items)
StringIconOption array from a
String Collection.
items - the String Collection to create
the StringIconOption array of
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||