org.openbp.guiclient.event
Class FileOpenEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openbp.jaspira.event.JaspiraEvent
          extended by org.openbp.guiclient.event.OpenEvent
              extended by org.openbp.guiclient.event.FileOpenEvent
All Implemented Interfaces:
java.io.Serializable

public class FileOpenEvent
extends OpenEvent

This event is used if a file is to be opened in its associated editor.

Author:
Andreas Putz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openbp.jaspira.event.JaspiraEvent
CONSUMED, HANDELED, STACKABLE, TYPE_BOTTOM_UP, TYPE_DIRECT, TYPE_FLOOD, TYPE_GLOBAL, UNCONSUMABLE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FileOpenEvent(Plugin source, java.lang.String eventName, java.lang.String filePath, java.lang.String[] mimeTypes)
          Constructor.
 
Method Summary
 int getColumnNumber()
          Gets the column number to select.
 java.lang.String getFilePath()
          Gets the file path
 int getLineNumber()
          Gets the line number to select.
 void setColumnNumber(int columnNumber)
          Sets the column number to select.
 void setLineNumber(int lineNumber)
          Sets the line number to select.
 
Methods inherited from class org.openbp.guiclient.event.OpenEvent
getAssociationProperty, getMimeTypes, getUnderlyingObject, isCreate, isReadonly, setAssociationProperty, setCreate, setMimeTypes, setReadonly, setUnderlyingObject
 
Methods inherited from class org.openbp.jaspira.event.JaspiraEvent
brand, getBrand, getEventGroup, getEventName, getFlags, getLevel, getObject, getOriginalEvent, getSourcePlugin, getTargetClassName, getTargetPluginId, getType, isConsumed, isStackable, isUnconsumable, setObject, setTargetClassName, setTargetPluginId, toString, updateFlags, updateFlags
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileOpenEvent

public FileOpenEvent(Plugin source,
                     java.lang.String eventName,
                     java.lang.String filePath,
                     java.lang.String[] mimeTypes)
Constructor. In Comparison to the object that shall be opened the underlying object contains the environmental information of former.

Parameters:
source - Source of the event
eventName - Name of the event
filePath - Path of the file that shall be opened
mimeTypes - MIME types of the object or null
Method Detail

getFilePath

public java.lang.String getFilePath()
Gets the file path


getLineNumber

public int getLineNumber()
Gets the line number to select.


setLineNumber

public void setLineNumber(int lineNumber)
Sets the line number to select.


getColumnNumber

public int getColumnNumber()
Gets the column number to select.


setColumnNumber

public void setColumnNumber(int columnNumber)
Sets the column number to select.



Copyright © 2011. All Rights Reserved.