org.noos.xing.mydoggy.ToolWindowManagerDescriptor Maven / Gradle / Ivy
Go to download
MyDoggy-Api contains the application program interface of MyDoggy to manage every aspects of the framework.
package org.noos.xing.mydoggy;
import java.awt.*;
/**
* This interface is used to modify the behaviours of the ToolWindowManager.
*
* @author Angelo De Caro ([email protected])
* @since 1.2.0
*/
public interface ToolWindowManagerDescriptor extends Observable {
/**
* @since 1.3.0
*/
enum Corner {
NORD_WEST,
SOUTH_WEST,
NORD_EAST,
SOUTH_EAST
}
/**
* Sets the push away mode to pushAwayMode
*
* @param pushAwayMode the new push away mode
* @see org.noos.xing.mydoggy.PushAwayMode
* @since 1.2.0
*/
void setPushAwayMode(PushAwayMode pushAwayMode);
/**
* Returns the current push away mode.
*
* @return the current push away mode.
* @since 1.2.0
*/
PushAwayMode getPushAwayMode();
/**
* Returns the PushAwayModeDescriptor for the passed push away mode if
* it is supported, null otherwise.
*
* @param pushAwayMode mode whose descriptor is to be returned.
* @return the PushAwayModeDescriptor for the passed push away mode if
* it is supported, null otherwise.
* @see PushAwayModeDescriptor
* @see PushAwayMode
* @since 1.3.0
*/
PushAwayModeDescriptor getPushAwayModeDescriptor(PushAwayMode pushAwayMode);
/**
* Adds the specified component at the given corner.
*
* @param corner the corner at which to insert the component.
* @param component the component to be added.
* @see Corner
* @since 1.3.0
*/
void setCornerComponent(Corner corner, Component component);
/**
* Enable or disable toolwindow index shortcuts.
*
* @param numberingEnabled true to enabled toolwindow index shortcuts, false to disable..
* @see org.noos.xing.mydoggy.ToolWindow#setIndex(int)
* @see #isNumberingEnabled()
* @since 1.3.1
*/
void setNumberingEnabled(boolean numberingEnabled);
/**
* Returns the activation status of the toolwindow index shortcuts.
*
* @return true is the toolwindow index shortcuts are enabled, false otherwise.
* @see #setNumberingEnabled(boolean)
* @since 1.3.1
*/
boolean isNumberingEnabled();
/**
* Enables or disables tool window previews.
*
* @param previewEnabled true to enable previews, false otherwise.
* @since 1.4.0
*/
void setPreviewEnabled(boolean previewEnabled);
/**
* Returns true if previews are enabled, false otherwise.
*
* @return true if previews are enabled, false otherwise.
* @since 1.4.0
*/
boolean isPreviewEnabled();
/**
* Sets whether or not the representative anchor buttons for unavailable tools are to be shown.
*
* @param showUnavailableTools true if you want to show the representative anchor buttons
* for unavailable tools, false otherwise.
* @since 1.4.1
* @see #isShowUnavailableTools()
*/
void setShowUnavailableTools(boolean showUnavailableTools);
/**
* Returns the value of the property "showUnavailableTools"
*
* @return true if the representative anchor buttons
* for unavailable tools are shown, false otherwise.
* @since 1.4.1
* @see #setShowUnavailableTools(boolean)
*/
boolean isShowUnavailableTools();
}