private List<View> getViewList() { return m_config.getViews(); }
/** * Checks whether this object contains a given {@link View} instance. * * @param view the {@link View} instance to search for * @return true, if the {@link View} exists, false otherwise */ public synchronized boolean containsView(View view) { return m_surveillanceViewConfiguration.getViews().contains(view); }
/** * Checks whether this object contains a given {@link View} instance. * * @param view the {@link View} instance to search for * @return true, if the {@link View} exists, false otherwise */ public synchronized boolean containsView(View view) { return m_surveillanceViewConfiguration.getViews().contains(view); }
/** * Returns the {@link View} for the given title. * * @param name the title to search for * @return the {@link View} instance if found, null otherwise */ public synchronized View getView(String name) { for (final View view : m_surveillanceViewConfiguration.getViews()) { if (view.getName().equals(name)) { return view; } } return null; }
/** * Checks whether this object contains {@link View} data concerning the given title. * * @param name the title to search for * @return true, if a {@link View} with the given name exists, false otherwise */ public synchronized boolean containsView(String name) { for (View view : m_surveillanceViewConfiguration.getViews()) { if (view.getName().equals(name)) { return true; } } return false; }
/** * Checks whether this object contains {@link View} data concerning the given title. * * @param name the title to search for * @return true, if a {@link View} with the given name exists, false otherwise */ public synchronized boolean containsView(String name) { for (View view : m_surveillanceViewConfiguration.getViews()) { if (view.getName().equals(name)) { return true; } } return false; }
/** * Returns the {@link View} for the given title. * * @param name the title to search for * @return the {@link View} instance if found, null otherwise */ public synchronized View getView(String name) { for (final View view : m_surveillanceViewConfiguration.getViews()) { if (view.getName().equals(name)) { return view; } } return null; }
/** * Replaces a {@link View} with a new one. * * @param oldView the old view to be replaced * @param newView the new view */ public synchronized void replaceView(View oldView, View newView) { View viewFound = null; for (View view : m_surveillanceViewConfiguration.getViews()) { if (view.getName().equals(oldView.getName())) { viewFound = view; break; } } if (viewFound != null) { int index = getSurveillanceViewConfiguration().getViews().indexOf(viewFound); getSurveillanceViewConfiguration().getViews().set(index, newView); } }
/** * This method removes a {@link View} from this provider. * * @param view the {@link View} instance to be removed */ public synchronized void removeView(View view) { if (m_surveillanceViewConfiguration == null) { load(); } m_surveillanceViewConfiguration.getViews().remove(view); save(); } }
/** * This method removes a {@link View} from this provider. * * @param view the {@link View} instance to be removed */ public synchronized void removeView(View view) { if (m_surveillanceViewConfiguration == null) { load(); } m_surveillanceViewConfiguration.getViews().remove(view); save(); } }
/** * This method adds a {@link View} to this provider. * * @param view the {@link View} instance to be added */ public synchronized void addView(View view) { if (m_surveillanceViewConfiguration == null) { load(); } m_surveillanceViewConfiguration.getViews().add(view); save(); }
/** * Replaces a {@link View} with a new one. * * @param oldView the old view to be replaced * @param newView the new view */ public synchronized void replaceView(View oldView, View newView) { View viewFound = null; for (View view : m_surveillanceViewConfiguration.getViews()) { if (view.getName().equals(oldView.getName())) { viewFound = view; break; } } if (viewFound != null) { int index = getSurveillanceViewConfiguration().getViews().indexOf(viewFound); getSurveillanceViewConfiguration().getViews().set(index, newView); } }
/** * This method adds a {@link View} to this provider. * * @param view the {@link View} instance to be added */ public synchronized void addView(View view) { if (m_surveillanceViewConfiguration == null) { load(); } m_surveillanceViewConfiguration.getViews().add(view); save(); }
/** * Use this method to get the generated Views class generated by the XSD. * * @return a {@link org.opennms.netmgt.config.surveillanceViews.Views} object. */ @Override public List<View> getViews() { return getContainer().getObject().getConfig().getViews(); }
/** * Reloads the configuration. */ public void reloadSurveillanceViews() { m_beanItemContainer.removeAllItems(); m_beanItemContainer.addAll(SurveillanceViewProvider.getInstance().getSurveillanceViewConfiguration().getViews()); } }
/** * Reloads the configuration. */ public void reloadSurveillanceViews() { m_beanItemContainer.removeAllItems(); m_beanItemContainer.addAll(SurveillanceViewProvider.getInstance().getSurveillanceViewConfiguration().getViews()); } }
List<View> views = SurveillanceViewProvider.getInstance().getSurveillanceViewConfiguration().getViews();
List<View> views = SurveillanceViewProvider.getInstance().getSurveillanceViewConfiguration().getViews();