You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
994 B
40 lines
994 B
package com.fr.design.report.freeze; |
|
|
|
|
|
import com.fr.stable.FT; |
|
import com.fr.stable.StringUtils; |
|
|
|
public class RepeatRowPane extends FreezeAndRepeatPane { |
|
|
|
public RepeatRowPane() { |
|
start = new RowSpinner(1,Integer.MAX_VALUE,1,1); |
|
end = new RowSpinner(1,Integer.MAX_VALUE,1,1); |
|
super.initComponent(); |
|
} |
|
|
|
|
|
|
|
@Override |
|
protected String title4PopupWindow() { |
|
return "repeatcolumn"; |
|
} |
|
|
|
@Override |
|
public void populateBean(FT ob) { |
|
if (ob.getFrom() <= ob.getTo()) { |
|
((RowSpinner)start).setValue((ob.getFrom() + 1)); |
|
((RowSpinner)end).setValue((ob.getTo() + 1)); |
|
} |
|
} |
|
|
|
@Override |
|
public FT updateBean() { |
|
return new FT((int)((RowSpinner) start).getValue()-1 , (int)((RowSpinner)end).getValue()-1 ); |
|
} |
|
|
|
@Override |
|
public String getLabeshow() { |
|
return StringUtils.BLANK + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Row_To") + StringUtils.BLANK; |
|
} |
|
|
|
}
|
|
|