/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License.
*/
/** * Controller interface that allows external code to control the DIFF component. * * @author Maros Sandor, Martin Entlicher
*/ publicinterface DiffView {
/** * This property is fired when the difference count has changed.
*/ publicstaticfinal String PROP_DIFF_COUNT = "diffCount"; // NOI18N
/** * Gets the visual DIFF component that modules can include in their GUI. * * @return Component
*/ public Component getComponent();
/** * Gets the number of differences found in sources. * * @return int
*/ publicint getDifferenceCount();
/** * Test whether this view can change the current difference. * This is expected to be true when the view has a visual indication * of the current difference.
*/ publicboolean canSetCurrentDifference();
/** * Instructs the DIFF view to navigate to the n-th difference. * * @param diffNo The difference number (-1 means hide current difference visualization) * @throws UnsupportedOperationException iff {@link #canSetCurrentDifference} * returns <code>false</code>.
*/ publicvoid setCurrentDifference(int diffNo) throws UnsupportedOperationException;
/** * Get the current difference that is displayed in the view. * * @return The current difference number * @throws UnsupportedOperationException iff {@link #canSetCurrentDifference} * returns <code>false</code>.
*/ publicint getCurrentDifference() throws UnsupportedOperationException;
/** * Get a toolbar, that is adviced to be displayed together with the component * obtained from {@link #getComponent}. * * @return the toolbar or <code>null</code> when no toolbar is provided by * this view.
*/ public JToolBar getToolBar();
/** * Add a property change listener. * @param l The property change listener
*/ publicvoid addPropertyChangeListener(PropertyChangeListener l);
/** * Remove a property change listener. * @param l The property change listener
*/ publicvoid removePropertyChangeListener(PropertyChangeListener l);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.