Ontimize 5.2072EN

com.ontimize.report.item
Class SelectableDateGroupItem

java.lang.Object
  extended bycom.ontimize.report.TranslatedItem
      extended bycom.ontimize.report.item.SelectableItem
          extended bycom.ontimize.report.item.SelectableDateGroupItem
All Implemented Interfaces:
java.util.Comparator, Internationalization

public class SelectableDateGroupItem
extends SelectableItem
implements Internationalization, java.util.Comparator

Class created to be added to report group list when columns are dates. It contains information about type of grouping: by day, by month, by quarter or by year.

Since:
5.2059EN
Author:
Imatia Innovation SL

Field Summary
protected  java.lang.String groupingDateText
           
protected  int groupingDateType
           
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
SelectableDateGroupItem(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 getGroupingDateType()
           
 int getOperation()
           
 boolean isSelected()
           
protected  void setGroupDateText()
           
 void setOperation(int op)
           
 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

groupingDateType

protected int groupingDateType

groupingDateText

protected java.lang.String groupingDateText
Constructor Detail

SelectableDateGroupItem

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

isSelected

public boolean isSelected()
Overrides:
isSelected in class SelectableItem

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 SelectableItem

setSelected

public void setSelected(boolean sel)
Overrides:
setSelected in class SelectableItem

getOperation

public int getOperation()

setOperation

public void setOperation(int op)

setGroupDateText

protected void setGroupDateText()

getGroupingDateType

public int getGroupingDateType()

toString

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

compareTo

public int compareTo(java.lang.Object o)
Overrides:
compareTo in class SelectableItem

compare

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

Ontimize