public class SelectableFunctionItem extends TranslatedItem implements Internationalization, Comparator
| Modifier and Type | Field and Description |
|---|---|
protected int |
operation |
protected String |
operationText |
protected boolean |
selected |
res, text, translatedTextDEBUG_LANGUAGE| Constructor and Description |
|---|
SelectableFunctionItem(String text,
ResourceBundle res) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
int |
compareTo(Object o) |
int |
getOperation() |
boolean |
isSelected() |
void |
setOperation(int op) |
protected void |
setOperationText() |
void |
setResourceBundle(ResourceBundle res)
Sets the language resource bundle.
|
void |
setSelected(boolean sel) |
String |
toString() |
getText, getTextsToTranslate, hashCode, setComponentLocaleclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetTextsToTranslate, setComponentLocaleequalsprotected boolean selected
protected int operation
protected String operationText
public SelectableFunctionItem(String text, ResourceBundle res)
public boolean isSelected()
public void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface InternationalizationsetResourceBundle in class TranslatedItemres - the new language bundle.public void setSelected(boolean sel)
public void setOperation(int op)
protected void setOperationText()
public int getOperation()
public String toString()
toString in class TranslatedItempublic int compareTo(Object o)
public int compare(Object o1, Object o2)
compare in interface ComparatorCopyright © 2016 Imatia Innovation S.L.. All rights reserved.