org.noos.xing.mydoggy
Class ToolWindowAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.noos.xing.mydoggy.ToolWindowAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public abstract class ToolWindowAction
extends AbstractAction

This abstract class is used to define a new behaviour associated to one or more toolwindows.

Since:
1.5.0
Author:
Angelo De Caro (angelo.decaro@gmail.com)
See Also:
Serialized Form

Field Summary
protected  String actionName
          The action name.
static String AGGREGATE_ACTION_ID
           
static String AGGREGATE_MENU_ACTION_ID
           
static String DOCK_ACTION_ID
           
static String FLOATING_ACTION_ID
           
static String FLOATING_LIVE_ACTION_ID
           
static String HIDE_ACTION_ID
           
protected  String id
          Used to identify the actioon
static String INDEX_MENU_ACTION_ID
           
static String MAXIMIZE_ACTION_ID
           
protected  JMenuItem menuItem
           
static String MOVE_TO_ACTION_ID
           
static String PIN_ACTION_ID
           
static String POPUP_ACTION_ID
           
protected  boolean showTextOnTitleBar
           
static String TOOLS_MENU_ACTION_ID
           
protected  ToolWindow toolWindow
          The toolwindow that ownes the action.
protected  boolean visibleOnMenuBar
           
protected  boolean visibleOnTitleBar
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected ToolWindowAction(String id)
           
protected ToolWindowAction(String id, Icon icon)
           
 
Method Summary
 String getActionName()
           
 Icon getIcon()
           
 String getId()
           
 JMenuItem getMenuItem()
           
 String getText()
           
 String getTooltipText()
           
 ToolWindow getToolWindow()
           
 boolean isShowTextOnTitleBar()
           
 boolean isVisibleOnMenuBar()
           
 boolean isVisibleOnTitleBar()
           
 void setActionName(String actionName)
           
 void setIcon(Icon icon)
           
 void setShowTextOnTitleBar(boolean showTextOnTitleBar)
           
 void setText(String text)
           
 void setTooltipText(String tooltipText)
           
 void setToolWindow(ToolWindow toolWindow)
           
 void setVisible(boolean visible)
           
 void setVisibleOnMenuBar(boolean visibleOnMenuBar)
           
 void setVisibleOnTitleBar(boolean visibleOnTitleBar)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

HIDE_ACTION_ID

public static final String HIDE_ACTION_ID
See Also:
Constant Field Values

DOCK_ACTION_ID

public static final String DOCK_ACTION_ID
See Also:
Constant Field Values

PIN_ACTION_ID

public static final String PIN_ACTION_ID
See Also:
Constant Field Values

MAXIMIZE_ACTION_ID

public static final String MAXIMIZE_ACTION_ID
See Also:
Constant Field Values

FLOATING_ACTION_ID

public static final String FLOATING_ACTION_ID
See Also:
Constant Field Values

FLOATING_LIVE_ACTION_ID

public static final String FLOATING_LIVE_ACTION_ID
See Also:
Constant Field Values

POPUP_ACTION_ID

public static final String POPUP_ACTION_ID
See Also:
Constant Field Values

MOVE_TO_ACTION_ID

public static final String MOVE_TO_ACTION_ID
See Also:
Constant Field Values

AGGREGATE_ACTION_ID

public static final String AGGREGATE_ACTION_ID
See Also:
Constant Field Values

AGGREGATE_MENU_ACTION_ID

public static final String AGGREGATE_MENU_ACTION_ID
See Also:
Constant Field Values

TOOLS_MENU_ACTION_ID

public static final String TOOLS_MENU_ACTION_ID
See Also:
Constant Field Values

INDEX_MENU_ACTION_ID

public static final String INDEX_MENU_ACTION_ID
See Also:
Constant Field Values

id

protected String id
Used to identify the actioon


actionName

protected String actionName
The action name.


toolWindow

protected ToolWindow toolWindow
The toolwindow that ownes the action.


menuItem

protected JMenuItem menuItem

showTextOnTitleBar

protected boolean showTextOnTitleBar

visibleOnTitleBar

protected boolean visibleOnTitleBar

visibleOnMenuBar

protected boolean visibleOnMenuBar
Constructor Detail

ToolWindowAction

protected ToolWindowAction(String id)

ToolWindowAction

protected ToolWindowAction(String id,
                           Icon icon)
Method Detail

getToolWindow

public ToolWindow getToolWindow()

setToolWindow

public void setToolWindow(ToolWindow toolWindow)

getId

public String getId()

setIcon

public void setIcon(Icon icon)

getIcon

public Icon getIcon()

setText

public void setText(String text)

getText

public String getText()

setTooltipText

public void setTooltipText(String tooltipText)

getTooltipText

public String getTooltipText()

getActionName

public String getActionName()

setActionName

public void setActionName(String actionName)

isVisibleOnTitleBar

public boolean isVisibleOnTitleBar()

setVisibleOnTitleBar

public void setVisibleOnTitleBar(boolean visibleOnTitleBar)

isVisibleOnMenuBar

public boolean isVisibleOnMenuBar()

setVisibleOnMenuBar

public void setVisibleOnMenuBar(boolean visibleOnMenuBar)

isShowTextOnTitleBar

public boolean isShowTextOnTitleBar()

setShowTextOnTitleBar

public void setShowTextOnTitleBar(boolean showTextOnTitleBar)

setVisible

public void setVisible(boolean visible)

getMenuItem

public JMenuItem getMenuItem()


Copyright © 2012. All Rights Reserved.