org.jhotdraw.gui.event
Class SheetEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jhotdraw.gui.event.SheetEvent
All Implemented Interfaces:
java.io.Serializable

public class SheetEvent
extends java.util.EventObject

SheetEvent.

Version:
$Id: SheetEvent.java 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
private  java.lang.Object inputValue
           
private  int option
           
private  javax.swing.JComponent pane
           
private  java.lang.Object value
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SheetEvent(JSheet source)
          Creates a new instance.
SheetEvent(JSheet source, javax.swing.JFileChooser fileChooser, int option, java.lang.Object value)
          Creates a new instance.
SheetEvent(JSheet source, javax.swing.JOptionPane optionPane, int option, java.lang.Object value, java.lang.Object inputValue)
          Creates a new instance.
 
Method Summary
 javax.swing.JFileChooser getFileChooser()
          Returns the JFileChooser pane on the sheet.
 java.lang.Object getInputValue()
          Returns the input value that the JOptionPane returned, if it wants input.
 int getOption()
          Returns the option that the JFileChooser or JOptionPane returned.
 javax.swing.JOptionPane getOptionPane()
          Returns the JOptionPane pane on the sheet.
 javax.swing.JComponent getPane()
          Returns the pane on the sheet.
 java.lang.Object getValue()
          Returns the value that the JFileChooser or JOptionPane returned.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pane

private javax.swing.JComponent pane

option

private int option

value

private java.lang.Object value

inputValue

private java.lang.Object inputValue
Constructor Detail

SheetEvent

public SheetEvent(JSheet source)
Creates a new instance.


SheetEvent

public SheetEvent(JSheet source,
                  javax.swing.JFileChooser fileChooser,
                  int option,
                  java.lang.Object value)
Creates a new instance.


SheetEvent

public SheetEvent(JSheet source,
                  javax.swing.JOptionPane optionPane,
                  int option,
                  java.lang.Object value,
                  java.lang.Object inputValue)
Creates a new instance.

Method Detail

getPane

public javax.swing.JComponent getPane()
Returns the pane on the sheet. This is either a JFileChooser or a JOptionPane.


getFileChooser

public javax.swing.JFileChooser getFileChooser()
Returns the JFileChooser pane on the sheet.


getOptionPane

public javax.swing.JOptionPane getOptionPane()
Returns the JOptionPane pane on the sheet.


getOption

public int getOption()
Returns the option that the JFileChooser or JOptionPane returned.


getValue

public java.lang.Object getValue()
Returns the value that the JFileChooser or JOptionPane returned.


getInputValue

public java.lang.Object getInputValue()
Returns the input value that the JOptionPane returned, if it wants input.