org.ujmp.gui.actions
Class ObjectAction

java.lang.Object
  extended by org.ujmp.gui.actions.ObjectAction
All Implemented Interfaces:
ActionListener, Serializable, Callable<Object>, EventListener, Action
Direct Known Subclasses:
AbstractMatrixAction, DenseMatrixAction, ExitAction, ImportMatrixFromClipboardAction, ImportMatrixFromDatabaseAction, ImportMatrixFromFileAction, ImportMatrixFromURLAction, LinkMatrixToDatabaseAction, LinkMatrixToFileAction, NewMatrixAction, PrintAction, SaveMatrixAction, SetLabelAction, ShowInFrameAction, SparseMatrixAction

public abstract class ObjectAction
extends Object
implements Action, Callable<Object>, Serializable

See Also:
Serialized Form

Field Summary
static int ALL
           
protected  SwingPropertyChangeSupport changeSupport
           
static int COLUMN
           
static int ROW
           
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ObjectAction(JComponent c, GUIObject o)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addPropertyChangeListener(PropertyChangeListener listener)
           
abstract  Object call()
           
 Future<?> executeInBackground()
           
protected  void firePropertyChange(String propertyName, Object oldValue, Object newValue)
           
 JComponent getComponent()
           
 CoreObject getCoreObject()
           
 GUIObject getGUIObject()
           
 Object getValue(String key)
           
 boolean isEnabled()
           
 void putValue(String key, Object newValue)
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setComponent(JComponent component)
           
 void setEnabled(boolean newValue)
           
 void setGUIObject(GUIObject o)
           
 void setProgress(double progress)
           
 void setStatus(String status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROW

public static final int ROW
See Also:
Constant Field Values

COLUMN

public static final int COLUMN
See Also:
Constant Field Values

ALL

public static final int ALL
See Also:
Constant Field Values

changeSupport

protected transient SwingPropertyChangeSupport changeSupport
Constructor Detail

ObjectAction

public ObjectAction(JComponent c,
                    GUIObject o)
Method Detail

setComponent

public final void setComponent(JComponent component)

setStatus

public final void setStatus(String status)

setProgress

public final void setProgress(double progress)

toString

public final String toString()
Overrides:
toString in class Object

getGUIObject

public final GUIObject getGUIObject()

getCoreObject

public final CoreObject getCoreObject()

setGUIObject

public final void setGUIObject(GUIObject o)

actionPerformed

public final void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

executeInBackground

public final Future<?> executeInBackground()

call

public abstract Object call()
Specified by:
call in interface Callable<Object>

getComponent

public final JComponent getComponent()

getValue

public Object getValue(String key)
Specified by:
getValue in interface Action

setEnabled

public void setEnabled(boolean newValue)
Specified by:
setEnabled in interface Action

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Action

firePropertyChange

protected void firePropertyChange(String propertyName,
                                  Object oldValue,
                                  Object newValue)

putValue

public void putValue(String key,
                     Object newValue)
Specified by:
putValue in interface Action

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface Action

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface Action


Copyright © 2010. All Rights Reserved.