public AuthenticationChainPalette( String id, IModel<List<String>> model, IModel<List<String>> choicesModel) { super( id, model, choicesModel, new ChoiceRenderer() { @Override public String getIdValue(Object object, int index) { return (String) getDisplayValue(object); } @Override public Object getDisplayValue(Object object) { return object.toString(); } }, 10, true); add(new DefaultTheme()); }
public AuthFilterChainPalette( String id, IModel<List<String>> model, IModel<List<String>> choicesModel) { super( id, model, choicesModel, new ChoiceRenderer() { @Override public String getIdValue(Object object, int index) { return (String) getDisplayValue(object); } @Override public Object getDisplayValue(Object object) { return object.toString(); } }, 10, true); this.choicesModel = (AvailableAuthFilterNamesModel) choicesModel; add(new DefaultTheme()); }
palette.add(new DefaultTheme()); palette.setOutputMarkupId(true);
palette.add(new DefaultTheme()); palette.setOutputMarkupPlaceholderTag(true);
public JAIEXTPanel(String id, IModel<JAIInfo> model) { super(id, model); PropertyModel<JAIEXTInfo> jaiextModel = new PropertyModel<JAIEXTInfo>(model, "JAIEXTInfo"); @SuppressWarnings({"rawtypes", "unchecked"}) Palette jaiextSelector = new Palette<String>( "jaiextOps", LiveCollectionModel.set(new PropertyModel(jaiextModel, "JAIOperations")), LiveCollectionModel.set(new PropertyModel(jaiextModel, "JAIEXTOperations")), new JAChoiceRenderer(), 7, false) { private static final long serialVersionUID = -4665147378650094510L; /** Override otherwise the header is not i18n'ized */ @Override public Component newSelectedHeader(final String componentId) { return new Label( componentId, new ResourceModel("JAIEXTPanel.selectedHeader")); } /** Override otherwise the header is not i18n'ized */ @Override public Component newAvailableHeader(final String componentId) { return new Label( componentId, new ResourceModel("JAIEXTPanel.availableHeader")); } }; jaiextSelector.add(new DefaultTheme()); add(jaiextSelector); }
allowedStyles.add(new DefaultTheme());
interpolationMethods.add(new DefaultTheme()); add(interpolationMethods); formatPalette.add(new DefaultTheme()); add(formatPalette);
extraStyles.add(new DefaultTheme()); styleContainer.add(extraStyles);