|
||||||||||
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 displaypublic DefaultStringIconOption(String text, Icon icon)
text
- the text to displayicon
- the optional icon to displayMethod Detail |
---|
public Icon getIcon()
getIcon
in interface StringIconOption
Icon
to render or null
if no icon
should be renderedpublic String getText()
getText
in interface StringIconOption
null
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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 |