Ontimize 5.2072EN

com.ontimize.report.item
Class SelectableFunctionItem

java.lang.Object
  extended bycom.ontimize.report.TranslatedItem
      extended bycom.ontimize.report.item.SelectableFunctionItem
All Implemented Interfaces:
java.util.Comparator, Internationalization
Direct Known Subclasses:
PredefinedFunctionItem

public class SelectableFunctionItem
extends TranslatedItem
implements Internationalization, java.util.Comparator


Field Summary
protected  int operation
           
protected  java.lang.String operationText
           
protected  boolean selected
           
 
Fields inherited from class com.ontimize.report.TranslatedItem
res, text, translatedText
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Constructor Summary
SelectableFunctionItem(java.lang.String text, java.util.ResourceBundle res)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 int compareTo(java.lang.Object o)
           
 int getOperation()
           
 boolean isSelected()
           
 void setOperation(int op)
           
protected  void setOperationText()
           
 void setResourceBundle(java.util.ResourceBundle res)
          Sets the language resource bundle.
 void setSelected(boolean sel)
           
 java.lang.String toString()
           
 
Methods inherited from class com.ontimize.report.TranslatedItem
getText, getTextsToTranslate, hashCode, setComponentLocale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ontimize.gui.i18n.Internationalization
getTextsToTranslate, setComponentLocale
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

selected

protected boolean selected

operation

protected int operation

operationText

protected java.lang.String operationText
Constructor Detail

SelectableFunctionItem

public SelectableFunctionItem(java.lang.String text,
                              java.util.ResourceBundle res)
Method Detail

isSelected

public boolean isSelected()

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle res)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Overrides:
setResourceBundle in class TranslatedItem

setSelected

public void setSelected(boolean sel)

setOperation

public void setOperation(int op)

setOperationText

protected void setOperationText()

getOperation

public int getOperation()

toString

public java.lang.String toString()
Overrides:
toString in class TranslatedItem

compareTo

public int compareTo(java.lang.Object o)

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

Ontimize