further implementation for verbatimdate
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / DateDetailSection.java
index 218ca46f7d5ab02c689568ff91c310b9583b7356..2b897c936253c2f17adc48b97a13a674e94bb0e8 100644 (file)
@@ -34,7 +34,15 @@ public class DateDetailSection extends AbstractFormSection<TimePeriod> {
        private TextWithLabelElement text_parseText;
        private int cursorPosition;
 
-       /**
+       public int getCursorPosition() {
+        return cursorPosition;
+    }
+
+    public void setCursorPosition(int cursorPosition) {
+        this.cursorPosition = cursorPosition;
+    }
+
+    /**
         * <p>
         * Constructor for DateDetailSection.
         * </p>
@@ -98,7 +106,7 @@ public class DateDetailSection extends AbstractFormSection<TimePeriod> {
         * When setting the entity through parsing we do not want to alter the parse field
         * @param timePeriod
         */
-       private void setEntityInternally(TimePeriod timePeriod){
+       protected void setEntityInternally(TimePeriod timePeriod){
                Partial start = timePeriod.getStart();
                partialElement_start.setPartial(start);
                Partial end = timePeriod.getEnd();
@@ -155,7 +163,7 @@ public class DateDetailSection extends AbstractFormSection<TimePeriod> {
                firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
        }
 
-       private void updateTitle(){
+       protected void updateTitle(){
                String title = CdmUtils.Nz(getEntity().toString());
                this.setText(title);
                layout();