cfa.vo.iris
Class AbstractIrisApplication

java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by org.jdesktop.application.Application
          extended by cfa.vo.iris.AbstractIrisApplication
All Implemented Interfaces:
IrisApplication

public abstract class AbstractIrisApplication
extends org.jdesktop.application.Application
implements IrisApplication

Author:
olaurino

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdesktop.application.Application
org.jdesktop.application.Application.ExitListener
 
Field Summary
protected  String[] componentArgs
           
protected  String componentName
           
static File CONFIGURATION_DIR
           
protected  boolean isBatch
           
 boolean MAC_OS_X
           
static boolean SAMP_FALLBACK
           
 
Constructor Summary
protected AbstractIrisApplication()
           
 
Method Summary
 void addConnectionListener(cfa.vo.interop.SAMPConnectionListener listener)
           
 void addMessageHandler(org.astrogrid.samp.client.MessageHandler handler)
           
 void exitApp()
           
abstract  JDialog getAboutBox()
           
abstract  List<IrisComponent> getComponents()
           
 File getConfigurationDir()
          Get a pointer to the directory that contains all the configuration files for this component.
abstract  String getDescription()
           
abstract  URL getDesktopIcon()
           
static AbstractIrisApplication getInstance()
           
abstract  String getName()
           
 cfa.vo.interop.SAMPController getSAMPController()
           
abstract  URL getSAMPIcon()
           
protected  void initialize(String[] args)
           
 boolean isSampEnabled()
          Return whether or not SAMP was enabled for this session.
 void sampSetup()
           
static void sampShutdown()
           
 void sendSampMessage(org.astrogrid.samp.Message msg)
           
 void sendSedMessage(ExtSed sed)
          Convenience shortcut that allows components to broadcast a SED message to the SAMP hub.
static void setAutoRunHub(boolean autoRunHub)
           
abstract  void setProperties(List<String> properties)
           
static void setTest(boolean t)
           
protected  void startup()
           
 
Methods inherited from class org.jdesktop.application.Application
addExitListener, end, exit, exit, getContext, getExitListeners, getInstance, hide, launch, quit, ready, removeExitListener, show, shutdown
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cfa.vo.iris.IrisApplication
getHelpURL
 

Field Detail

CONFIGURATION_DIR

public static final File CONFIGURATION_DIR

MAC_OS_X

public final boolean MAC_OS_X

SAMP_FALLBACK

public static final boolean SAMP_FALLBACK
See Also:
Constant Field Values

componentArgs

protected String[] componentArgs

componentName

protected String componentName

isBatch

protected boolean isBatch
Constructor Detail

AbstractIrisApplication

protected AbstractIrisApplication()
Method Detail

addConnectionListener

public void addConnectionListener(cfa.vo.interop.SAMPConnectionListener listener)

addMessageHandler

public void addMessageHandler(org.astrogrid.samp.client.MessageHandler handler)

exitApp

public void exitApp()

getName

public abstract String getName()

getDescription

public abstract String getDescription()

getSAMPIcon

public abstract URL getSAMPIcon()

getInstance

public static AbstractIrisApplication getInstance()

sampSetup

public void sampSetup()

sampShutdown

public static void sampShutdown()

setAutoRunHub

public static void setAutoRunHub(boolean autoRunHub)

setTest

public static void setTest(boolean t)

getComponents

public abstract List<IrisComponent> getComponents()
                                           throws Exception
Throws:
Exception

getAboutBox

public abstract JDialog getAboutBox()

getConfigurationDir

public File getConfigurationDir()
Description copied from interface: IrisApplication
Get a pointer to the directory that contains all the configuration files for this component.

Specified by:
getConfigurationDir in interface IrisApplication
Returns:
A File instance for the configuration directory.

initialize

protected void initialize(String[] args)
Overrides:
initialize in class org.jdesktop.application.Application

isSampEnabled

public boolean isSampEnabled()
Description copied from interface: IrisApplication
Return whether or not SAMP was enabled for this session. SAMP features could be required to be switched on and off when the application is launched.

Specified by:
isSampEnabled in interface IrisApplication
Returns:
True if SAMP is enabled in this session.

sendSedMessage

public void sendSedMessage(ExtSed sed)
                    throws org.astrogrid.samp.client.SampException
Description copied from interface: IrisApplication
Convenience shortcut that allows components to broadcast a SED message to the SAMP hub.

Specified by:
sendSedMessage in interface IrisApplication
Parameters:
sed - The SED file that has to be sent through SAMP
Throws:
org.astrogrid.samp.client.SampException - If an exception is thrown while the message is being sent

sendSampMessage

public void sendSampMessage(org.astrogrid.samp.Message msg)
                     throws org.astrogrid.samp.client.SampException
Specified by:
sendSampMessage in interface IrisApplication
Throws:
org.astrogrid.samp.client.SampException

startup

protected void startup()
Specified by:
startup in class org.jdesktop.application.Application

getSAMPController

public cfa.vo.interop.SAMPController getSAMPController()
Specified by:
getSAMPController in interface IrisApplication

getDesktopIcon

public abstract URL getDesktopIcon()

setProperties

public abstract void setProperties(List<String> properties)


Copyright © 2013. All rights reserved.