org.jhotdraw.gui.event
Class SheetEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.jhotdraw.gui.event.SheetEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class SheetEvent extends java.util.EventObjectSheetEvent.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description URIChoosergetChooser()Returns the URIChooser pane on the sheet.javax.swing.JFileChoosergetFileChooser()Returns the JFileChooser pane on the sheet.java.lang.ObjectgetInputValue()Returns the input value that the JOptionPane returned, if it wants input.intgetOption()Returns the option that the JFileChooser or JOptionPane returned.javax.swing.JOptionPanegetOptionPane()Returns the JOptionPane pane on the sheet.java.lang.ObjectgetPane()Returns the pane on the sheet.java.lang.ObjectgetValue()Returns the value that the JFileChooser or JOptionPane returned.
-
-
-
Constructor Detail
-
SheetEvent
public SheetEvent(JSheet source)
Creates a new instance.
-
SheetEvent
public SheetEvent(JSheet source, javax.swing.JFileChooser fileChooser, int option, @Nullable java.lang.Object value)
Creates a new instance.
-
SheetEvent
public SheetEvent(JSheet source, URIChooser chooser, int option, @Nullable java.lang.Object value)
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG