|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.action.Action
org.malai.action.library.IOAction
public abstract class IOAction
This abstract action defines an model for loading and saving actions.
This file is part of Malai
Copyright (c) 2009-2012 Arnaud BLOUIN
Malai is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.
Malai is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.malai.action.Action |
---|
Action.ActionStatus |
Field Summary | |
---|---|
protected java.io.File |
file
The current file loaded or saved. |
protected boolean |
ok
Define if the drawing has been successfully loaded or saved. |
protected ISOpenSaver |
openSaveManager
The object that saves and loads files for the IS. |
protected MProgressBar |
progressBar
The progress bar used to show the progress of the saving. |
protected java.lang.Object |
statusWidget
The widget that displays the status of the I/O operation. |
protected UI |
ui
The user interface that contains abstract presentations and instruments. |
Fields inherited from class org.malai.action.Action |
---|
status |
Constructor Summary | |
---|---|
IOAction()
Creates a save action. |
Method Summary | |
---|---|
boolean |
canDo()
|
void |
flush()
When an action is no more useful it can be flushes to release the used data. |
java.io.File |
getFile()
|
boolean |
hadEffect()
|
boolean |
isRegisterable()
Specifies if the action must be saved in the action register. |
void |
setFile(java.io.File file)
|
void |
setOpenSaveManager(ISOpenSaver openSaveManager)
|
void |
setProgressBar(MProgressBar progressBar)
|
void |
setStatusWidget(java.lang.Object statusWidget)
|
void |
setUi(UI ui)
|
Methods inherited from class org.malai.action.Action |
---|
abort, cancelledBy, doActionBody, doIt, done, getStatus, isDone, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.io.File file
protected UI ui
protected boolean ok
protected ISOpenSaver openSaveManager
protected MProgressBar progressBar
protected java.lang.Object statusWidget
Constructor Detail |
---|
public IOAction()
Method Detail |
---|
public void flush()
Action
flush
in class Action
public boolean isRegisterable()
Action
isRegisterable
in class Action
public boolean canDo()
canDo
in class Action
public boolean hadEffect()
hadEffect
in class Action
public void setFile(java.io.File file)
file
- the file to set.public java.io.File getFile()
public void setProgressBar(MProgressBar progressBar)
progressBar
- The progress bar used to show the progress of the saving.public void setUi(UI ui)
ui
- the ui to set.public void setOpenSaveManager(ISOpenSaver openSaveManager)
openSaveManager
- the openSaveManager to set.public void setStatusWidget(java.lang.Object statusWidget)
statusWidget
- the widget that will be used to display I/O messages.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |