Class ClipboardTarget
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.gui.tools.spreadsheetprocessor.AbstractWidget
-
- adams.gui.tools.spreadsheetprocessor.targets.AbstractTarget
-
- adams.gui.tools.spreadsheetprocessor.targets.ClipboardTarget
-
- All Implemented Interfaces:
LoggingLevelHandler
,LoggingSupporter
,SizeOfHandler
,Serializable
,Comparable<AbstractWidget>
public class ClipboardTarget extends AbstractTarget
For copying the processed data to the clipboard.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_CHART
protected BaseButton
m_ButtonCopy
the button for copying.protected GenericObjectEditorPanel
m_PanelWriter
the writer to use.protected BasePanel
m_Widget
the widget.-
Fields inherited from class adams.gui.tools.spreadsheetprocessor.AbstractWidget
m_Owner
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ClipboardTarget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assign(AbstractWidget other)
Retrieves the values from the other widget, if possible.protected void
copy()
Loads the datavoid
deserialize(Object data, MessageCollection errors)
Deserializes the setup and maps it onto the widget.protected void
doProcess(SpreadSheet data, MessageCollection errors)
Processes the data.SpreadSheetWriter
getCurrentWriter()
Returns the current writer.String
getName()
Returns the name of the widget.Component
getWidget()
Returns the widget.Object
serialize()
Serializes the setup from the widget.void
setCurrentWriter(SpreadSheetWriter value)
Sets the current writer.void
update()
Updates the widget.-
Methods inherited from class adams.gui.tools.spreadsheetprocessor.targets.AbstractTarget
check, process
-
Methods inherited from class adams.gui.tools.spreadsheetprocessor.AbstractWidget
compareTo, equals, getOwner, notifyOwner, setOwner, toString
-
Methods inherited from class adams.core.logging.CustomLoggingLevelObject
setLoggingLevel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
KEY_CHART
public static final String KEY_CHART
- See Also:
- Constant Field Values
-
m_Widget
protected BasePanel m_Widget
the widget.
-
m_PanelWriter
protected GenericObjectEditorPanel m_PanelWriter
the writer to use.
-
m_ButtonCopy
protected BaseButton m_ButtonCopy
the button for copying.
-
-
Method Detail
-
getName
public String getName()
Returns the name of the widget.- Specified by:
getName
in classAbstractWidget
- Returns:
- the name
-
getWidget
public Component getWidget()
Returns the widget.- Specified by:
getWidget
in classAbstractWidget
- Returns:
- the widget
-
update
public void update()
Updates the widget.- Specified by:
update
in classAbstractWidget
-
setCurrentWriter
public void setCurrentWriter(SpreadSheetWriter value)
Sets the current writer.- Parameters:
value
- the writer
-
getCurrentWriter
public SpreadSheetWriter getCurrentWriter()
Returns the current writer.- Returns:
- the writer
-
copy
protected void copy()
Loads the data
-
assign
public void assign(AbstractWidget other)
Retrieves the values from the other widget, if possible.- Specified by:
assign
in classAbstractWidget
- Parameters:
other
- the other widget to get the values from
-
serialize
public Object serialize()
Serializes the setup from the widget.- Specified by:
serialize
in classAbstractWidget
- Returns:
- the generated setup representation
-
deserialize
public void deserialize(Object data, MessageCollection errors)
Deserializes the setup and maps it onto the widget.- Specified by:
deserialize
in classAbstractWidget
- Parameters:
data
- the setup representation to useerrors
- for collecting errors
-
doProcess
protected void doProcess(SpreadSheet data, MessageCollection errors)
Processes the data.- Specified by:
doProcess
in classAbstractTarget
- Parameters:
data
- the input dataerrors
- for storing errors
-
-