org.jesktop
Interface DesktopKernel

All Known Subinterfaces:
DesktopKernelService

public interface DesktopKernel

Version:
1.0
Author:
Paul Hammant Paul_Hammant@yahoo.com

Field Summary
static java.lang.String LAUNCHABLE_TARGET_CHANGE
           
static java.lang.String ROLE
           
static java.lang.String SHUTDOWN_REBOOT
           
static java.lang.String SHUTDOWN_SHUTDOWN
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Method addPropertyChangeListener
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 void editDocument(java.net.URL docURL)
          Method editDocument
 LaunchableTarget[] getAllLaunchableTargets()
          Method getAllLaunchableTargets
 ConfigletLaunchableTarget[] getConfigletLaunchableTargets()
          Method getConfigletLaunchableTargets
 DecoratorLaunchableTarget[] getDecoratorLaunchableTargets()
          Method getDecoratorLaunchableTargets
 LaunchableTarget[] getNormalLaunchableTargets()
          Method getNormalLaunchableTargets
 void initiateShutdown(java.lang.String shutdownType)
          Method initiateShutdown
 void itemBeingDragged(DraggedItem draggedItem, java.awt.Point pt)
          Method itemBeingDragged
 void launchedTargetCloseRequested(LaunchedTarget launchedTarget)
          Method launchedTargetCloseRequested
 void launchedTargetSelected(LaunchedTarget launchedTarget)
          Method launchedTargetSelected
 void notifyLaunchableTargetListeners()
          Method notifyLaunchableTargetListeners
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Method removePropertyChangeListener
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
           
 void runAsychronously(java.lang.Runnable runnable)
          this is usable for local file system installs as well as over the web installs.
 void setDecoratorLaunchableTarget(DecoratorLaunchableTarget newDecorator)
          Method setDecoratorLaunchableTarget
 void uninstall(LaunchableTarget launchableTarget)
          Method uninstall
 void viewDocument(java.net.URL docURL)
          These will use internal associations to launch an app (see above) for the mime type of the document in question.
 void viewDocument(java.net.URL docURL, javax.swing.JComponent inHere, boolean thumbNail)
          Method viewDocument
 

Field Detail

ROLE

public static final java.lang.String ROLE
See Also:
Constant Field Values

SHUTDOWN_SHUTDOWN

public static final java.lang.String SHUTDOWN_SHUTDOWN
See Also:
Constant Field Values

SHUTDOWN_REBOOT

public static final java.lang.String SHUTDOWN_REBOOT
See Also:
Constant Field Values

LAUNCHABLE_TARGET_CHANGE

public static final java.lang.String LAUNCHABLE_TARGET_CHANGE
See Also:
Constant Field Values
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Method addPropertyChangeListener

Parameters:
listener -

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Method removePropertyChangeListener

Parameters:
listener -

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener listener)

launchedTargetSelected

public void launchedTargetSelected(LaunchedTarget launchedTarget)
Method launchedTargetSelected

Parameters:
launchedTarget -

launchedTargetCloseRequested

public void launchedTargetCloseRequested(LaunchedTarget launchedTarget)
Method launchedTargetCloseRequested

Parameters:
launchedTarget -

itemBeingDragged

public void itemBeingDragged(DraggedItem draggedItem,
                             java.awt.Point pt)
Method itemBeingDragged

Parameters:
draggedItem -
pt -

viewDocument

public void viewDocument(java.net.URL docURL)
                  throws JesktopLaunchException
These will use internal associations to launch an app (see above) for the mime type of the document in question. Each mime type has a queue of associations for it, for both view and edit. The queue overcomes the issue in Windows where if you de-install a package, there may be no association left for a mime type. It also provides an alternaive choice on a context sensitive menu...

Parameters:
docURL -
Throws:
JesktopLaunchException

viewDocument

public void viewDocument(java.net.URL docURL,
                         javax.swing.JComponent inHere,
                         boolean thumbNail)
                  throws JesktopLaunchException
Method viewDocument

Parameters:
docURL -
inHere -
thumbNail -
Throws:
JesktopLaunchException

editDocument

public void editDocument(java.net.URL docURL)
Method editDocument

Parameters:
docURL -

runAsychronously

public void runAsychronously(java.lang.Runnable runnable)
                      throws java.lang.Exception
this is usable for local file system installs as well as over the web installs.

Throws:
java.lang.Exception

getNormalLaunchableTargets

public LaunchableTarget[] getNormalLaunchableTargets()
Method getNormalLaunchableTargets

Returns:

getAllLaunchableTargets

public LaunchableTarget[] getAllLaunchableTargets()
Method getAllLaunchableTargets

Returns:

uninstall

public void uninstall(LaunchableTarget launchableTarget)
Method uninstall

Parameters:
launchableTarget -

notifyLaunchableTargetListeners

public void notifyLaunchableTargetListeners()
Method notifyLaunchableTargetListeners


initiateShutdown

public void initiateShutdown(java.lang.String shutdownType)
                      throws JesktopLaunchException
Method initiateShutdown

Parameters:
shutdownType -
Throws:
JesktopLaunchException

getDecoratorLaunchableTargets

public DecoratorLaunchableTarget[] getDecoratorLaunchableTargets()
Method getDecoratorLaunchableTargets

Returns:

getConfigletLaunchableTargets

public ConfigletLaunchableTarget[] getConfigletLaunchableTargets()
Method getConfigletLaunchableTargets

Returns:

setDecoratorLaunchableTarget

public void setDecoratorLaunchableTarget(DecoratorLaunchableTarget newDecorator)
Method setDecoratorLaunchableTarget

Parameters:
newDecorator -


Copyright © 2004 Jesktop Project. All Rights Reserved.