org.acm.seguin.ide.jbuilder
Class PrintAction

java.lang.Object
  extended by org.acm.seguin.ide.common.TextPrinter
      extended by org.acm.seguin.ide.jbuilder.PrintAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.Action

public class PrintAction
extends TextPrinter
implements javax.swing.Action

Pretty printer action button

Author:
Chris Seguin

Field Summary
 
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
PrintAction()
          Constructor for the PrintAction object
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          The pretty printer action
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a feature to the PropertyChangeListener attribute of the PrintAction object
protected  java.lang.String getFilenameFromIDE()
          Gets the initial string from the IDE
protected  java.lang.String getStringFromIDE()
          Gets the initial string from the IDE
 java.lang.Object getValue(java.lang.String key)
          Gets the Value attribute of the PrintAction object
 boolean isEnabled()
          Gets the Enabled attribute of the PrintAction object
 void putValue(java.lang.String key, java.lang.Object value)
          Sets the Value attribute of the PrintAction object
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a listener
 void setEnabled(boolean value)
          Sets the Enabled attribute of the PrintAction object
 
Methods inherited from class org.acm.seguin.ide.common.TextPrinter
print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintAction

public PrintAction()
Constructor for the PrintAction object

Method Detail

setEnabled

public void setEnabled(boolean value)
Sets the Enabled attribute of the PrintAction object

Specified by:
setEnabled in interface javax.swing.Action
Parameters:
value - The new Enabled value

getFilenameFromIDE

protected java.lang.String getFilenameFromIDE()
Gets the initial string from the IDE

Returns:
The file in string format

getStringFromIDE

protected java.lang.String getStringFromIDE()
Gets the initial string from the IDE

Returns:
The file in string format

getValue

public java.lang.Object getValue(java.lang.String key)
Gets the Value attribute of the PrintAction object

Specified by:
getValue in interface javax.swing.Action
Parameters:
key - Description of Parameter
Returns:
The Value value

isEnabled

public boolean isEnabled()
Gets the Enabled attribute of the PrintAction object

Specified by:
isEnabled in interface javax.swing.Action
Returns:
The Enabled value

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
The pretty printer action

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - the action that occurred

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a feature to the PropertyChangeListener attribute of the PrintAction object

Specified by:
addPropertyChangeListener in interface javax.swing.Action
Parameters:
listener - The feature to be added to the PropertyChangeListener attribute

putValue

public void putValue(java.lang.String key,
                     java.lang.Object value)
Sets the Value attribute of the PrintAction object

Specified by:
putValue in interface javax.swing.Action
Parameters:
key - The new key value
value - The new value value

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener

Specified by:
removePropertyChangeListener in interface javax.swing.Action
Parameters:
listener - the listener to be removed