JHotDraw 7.1

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:
1.0 26. September 2005 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
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
 

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.


Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.