Skip to content

Commit

Permalink
style: remove redundant public modifier from interface methods
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Sep 30, 2024
1 parent a845c33 commit 4b83033
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/vlsolutions/swing/docking/Dockable.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
public interface Dockable {

/** returns the unique key identifying the docked element */
public DockKey getDockKey();
DockKey getDockKey();

/**
* returns the component wrapped.
*
*/
public Component getComponent();
Component getComponent();
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public interface DockableContainer {
*
*
*/
public void installDocking(DockingDesktop desktop);
void installDocking(DockingDesktop desktop);

/**
* Called once, when the dockablecontainer is no longer used by the desktop, in order to releases
* resources and listeners taken on <code>installDocking()<code>.
*/
public void uninstallDocking(DockingDesktop desktop);
void uninstallDocking(DockingDesktop desktop);
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ public interface DockableResolver {
/**
* Returns the dockable which should be associated to this DockKey identifier, or null if not found.
*/
public Dockable resolveDockable(String keyName);
Dockable resolveDockable(String keyName);
}
10 changes: 5 additions & 5 deletions src/main/java/com/vlsolutions/swing/docking/DragControler.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
*/
public interface DragControler extends MouseListener, MouseMotionListener {

public void cancelDrag();
void cancelDrag();

public Dockable getDockable();
Dockable getDockable();

public DockDropReceiver getDropReceiver();
DockDropReceiver getDropReceiver();

public Shape getDropShape();
Shape getDropShape();

public boolean isFloatingShape();
boolean isFloatingShape();
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
public interface FloatingDockableContainer {

/** This install method is invoked before adding the first dockable */
public void installDocking(DockingDesktop desktop);
void installDocking(DockingDesktop desktop);

/** adds the initial dockable to this top-level container */
public void setInitialDockable(Dockable dockable);
void setInitialDockable(Dockable dockable);

/**
* adds the initial tabbdeddockablecontainer to this top-level container. This will happen when
* drag-n-dropping a whole tab container from the desktop.
*/
public void setInitialTabbedDockableContainer(TabbedDockableContainer tdc);
void setInitialTabbedDockableContainer(TabbedDockableContainer tdc);
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@
interface ShapePainterStrategy {

/** show the drag cursor */
public void showDragCursor();
void showDragCursor();

/** show the stop-drag cursor (drag not enabled) */
public void showStopDragCursor();
void showStopDragCursor();

/** show the stop-drag cursor (drag not enabled) */
public void showSwapDragCursor();
void showSwapDragCursor();

/** show the float (detached) cursor */
public void showFloatCursor();
void showFloatCursor();

public void repaint();
void repaint();

public void startDrag(DockableDragSource source);
void startDrag(DockableDragSource source);

public void endDrag();
void endDrag();
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
public interface SingleDockableContainer extends DockableContainer {

/** Returns the dockable this container is displaying */
public Dockable getDockable();
Dockable getDockable();
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@
public interface TabbedDockableContainer extends DockableContainer {

/** Returns the currently selected (front) dockable */
public Dockable getSelectedDockable();
Dockable getSelectedDockable();

/** Change the tab selection to display this dockable */
public void setSelectedDockable(Dockable dockable);
void setSelectedDockable(Dockable dockable);

/** Returs the current tab count (which is also the current dockable count) */
public int getTabCount();
int getTabCount();

/** Returns the dockable at the index tab */
public Dockable getDockableAt(int index);
Dockable getDockableAt(int index);

/** Adds a dockable to the given index tab. */
public void addDockable(Dockable dockable, int index);
void addDockable(Dockable dockable, int index);

/** Removes a dockable from the tabs */
public void removeDockable(Dockable dockable);
void removeDockable(Dockable dockable);

/** Remove the dockable at specified index tab */
public void removeDockable(int index);
void removeDockable(int index);

/** Returns the index of the given dockable */
public int indexOfDockable(Dockable dockable);
int indexOfDockable(Dockable dockable);
}

0 comments on commit 4b83033

Please sign in to comment.