cfa.vo.iris
Class AbstractIrisApplication
java.lang.Object
org.jdesktop.application.AbstractBean
org.jdesktop.application.Application
cfa.vo.iris.AbstractIrisApplication
- All Implemented Interfaces:
- IrisApplication
public abstract class AbstractIrisApplication
- extends org.jdesktop.application.Application
- implements IrisApplication
- Author:
- olaurino
Nested classes/interfaces inherited from class org.jdesktop.application.Application |
org.jdesktop.application.Application.ExitListener |
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 |
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
AbstractIrisApplication
protected AbstractIrisApplication()
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.