[Bug #949] Translate values of ProgressType in listbox of Configuration->'Show Progress'
FEA: ItEr73S04BugFixing
This commit is contained in:
parent
811037e831
commit
b2a4fda5f1
2 changed files with 18 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ import org.zkoss.zul.Intbox;
|
|||
import org.zkoss.zul.Label;
|
||||
import org.zkoss.zul.Listbox;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Row;
|
||||
|
|
@ -72,6 +73,8 @@ import org.zkoss.zul.api.Window;
|
|||
*/
|
||||
public class ConfigurationController extends GenericForwardComposer {
|
||||
|
||||
private final ProgressTypeRenderer progressTypeRenderer = new ProgressTypeRenderer();
|
||||
|
||||
private Window configurationWindow;
|
||||
|
||||
private BandboxSearch defaultCalendarBandboxSearch;
|
||||
|
|
@ -429,6 +432,20 @@ public class ConfigurationController extends GenericForwardComposer {
|
|||
return configurationModel.isScenariosVisible();
|
||||
}
|
||||
|
||||
public ProgressTypeRenderer getProgressTypeRenderer() {
|
||||
return progressTypeRenderer;
|
||||
}
|
||||
|
||||
private class ProgressTypeRenderer implements ListitemRenderer {
|
||||
|
||||
@Override
|
||||
public void render(Listitem item, Object data) throws Exception {
|
||||
ProgressType progressType = (ProgressType) data;
|
||||
item.setLabel(_(progressType.getValue()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class EntitySequenceGroupRenderer implements RowRenderer {
|
||||
@Override
|
||||
public void render(Row row, Object data) throws Exception {
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@
|
|||
<label value="${i18n:_('Show progress')}" />
|
||||
<listbox id="lbTypeProgress"
|
||||
model="@{configurationController.progressTypes}"
|
||||
itemRenderer="@{configurationController.progressTypeRenderer}"
|
||||
selectedItem="@{configurationController.selectedProgressType}"
|
||||
mold="select" />
|
||||
</row>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue