public class RunAnythingItemBase extends RunAnythingItem
Modifier and Type | Field and Description |
---|---|
protected javax.swing.Icon |
myIcon |
Constructor and Description |
---|
RunAnythingItemBase(java.lang.String command,
javax.swing.Icon icon) |
Modifier and Type | Method and Description |
---|---|
protected static void |
appendDescription(SimpleColoredComponent component,
java.lang.String description,
java.awt.Color foreground) |
java.awt.Component |
createComponent(java.lang.String pattern,
boolean isSelected,
boolean hasFocus)
Creates current item
Component |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCommand()
Returns text presentation of command
|
java.lang.String |
getDescription() |
int |
hashCode() |
void |
setupIcon(SimpleColoredComponent component,
javax.swing.Icon icon) |
createComponent
public RunAnythingItemBase(java.lang.String command, javax.swing.Icon icon)
public java.lang.String getCommand()
RunAnythingItem
getCommand
in class RunAnythingItem
public java.lang.String getDescription()
public java.awt.Component createComponent(java.lang.String pattern, boolean isSelected, boolean hasFocus)
RunAnythingItem
Component
createComponent
in class RunAnythingItem
pattern
- search field input fieldisSelected
- true if item is selected in the listhasFocus
- true if item has focus in the listpublic void setupIcon(SimpleColoredComponent component, javax.swing.Icon icon)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
protected static void appendDescription(SimpleColoredComponent component, java.lang.String description, java.awt.Color foreground)