JHotDraw 7.5.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:
$Id: SheetEvent.java 647 2010-01-24 22:52:59Z rawcoder $
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.
SheetEvent(JSheet source, URIChooser chooser, int option, java.lang.Object value)
          Creates a new instance.
 
Method Summary
 URIChooser getChooser()
          Returns the URIChooser pane on the sheet.
 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.
 java.lang.Object 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,
                  URIChooser chooser,
                  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 java.lang.Object getPane()
Returns the pane on the sheet. This is either a JFileChooser, a URIChooser or a JOptionPane.


getFileChooser

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


getChooser

public URIChooser getChooser()
Returns the URIChooser 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-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.