@Override public void performFinalize(Object model, LifecycleElement parent) { super.performFinalize(model, parent); if (parent instanceof Component) { buildCSSforScrollPane((Component) parent); } }
@Override public void onTransitionEnd() { for (int i = 0; i < _panel.getWidgetCount(); i++) { Widget w = _panel.getWidget(i); if (Utils.isSubclassOf(w.getClass(), WidgetBase.class)) { ((WidgetBase) w).onTransitionEnd(); } } }
@Override public void onInitialLoad() { super.onInitialLoad(); _current = 0; Slide slide = getSlide(_current); if (slide != null) { _panel.add(slide); } }
/** * Override to add property values to the template options * * <p>{@inheritDoc} */ @Override public Map<String, String> getTemplateOptions() { Map<String, String> templateOptions = super.getTemplateOptions(); if (templateOptions == null) { super.setTemplateOptions(templateOptions = new HashMap<String, String>()); } if (StringUtils.isNotBlank(blockingImageSource) && !templateOptions.containsKey("blockingImage")) { templateOptions.put("blockingImage", blockingImageSource); } return templateOptions; }
/** @see org.kuali.rice.krad.uif.component.ComponentBase#copy() */ @Override protected <T> void copyProperties(T component) { super.copyProperties(component); Tree treeCopy = (Tree) component; }
@Override protected void onUnload() { DragController.get().removeSwipeEventHandler(this); super.onUnload(); }
@Override public void onLoad() { super.onLoad(); DragController.get().addSwipeEventsHandler(this); }
@Override public void onTransitionEnd() { super.onTransitionEnd(); _panel.remove(0); }
private void openWidgetsToggleDialog() { final List<WidgetBase> widgets = mCapabilities.getWidgets(); List<String> widgetsName = new ArrayList<String>(); // Construct a list of widgets for (WidgetBase widget : widgets) { if (widget.getClass().getName().contains("SettingsWidget")) continue; widgetsName.add(widget.getToggleButton().getHintText()); } CharSequence[] items = widgetsName.toArray(new CharSequence[widgetsName.size()]); AlertDialog.Builder builder = new AlertDialog.Builder(mContext); builder.setTitle(mContext.getString(R.string.widget_settings_choose_widgets)); builder .setMultiChoiceItems( items, null, new DialogInterface.OnMultiChoiceClickListener() { // indexSelected contains the index of item (of which checkbox checked) @Override public void onClick(DialogInterface dialog, int indexSelected, boolean isChecked) { widgets.get(indexSelected).setHidden(!isChecked); } }) // Set the action buttons .setPositiveButton( "OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { // Store the widget visibility status in SharedPreferences, using the // widget class name as key for (WidgetBase widget : widgets) { if (widget.getClass().getName().contains("SettingsWidget")) { continue; } SettingsStorage.storeVisibilitySetting( mContext, widget.getClass().getName(), !widget.isHidden()); } } }) .setNegativeButton( "Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int id) { // Restore visibility status from storage for (WidgetBase widget : widgets) { if (widget.getClass().getName().contains("SettingsWidget")) { continue; } widget.setHidden( !SettingsStorage.getVisibilitySetting(mContext, widget.getClass().getName())); } } }); mWidgetsDialog = builder.create(); mWidgetsDialog.show(); for (int i = 0; i < widgets.size(); i++) { mWidgetsDialog.getListView().setItemChecked(i, !widgets.get(i).isHidden()); } ((ViewGroup) mWidgetsDialog.getListView().getParent().getParent().getParent()) .animate() .rotation(mOrientation) .setDuration(300) .start(); }