|
||||||||||
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.ActivateInactivateInstruments
public class ActivateInactivateInstruments
This instrument activates and inactivates instruments.
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 (at your option) 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 boolean |
activateFirst
Defines the activations must be performed before the inactivations. |
protected boolean |
hideWidgets
Defines if the widgets of WidgetInstrument instances must be hidden during their deactivation. |
protected java.util.List<Instrument> |
insActivate
The instruments to activate. |
protected java.util.List<Instrument> |
insInactivate
The instrument to desactivate. |
Fields inherited from class org.malai.action.Action |
---|
status |
Constructor Summary | |
---|---|
ActivateInactivateInstruments()
Creates and initialises the instrument. |
Method Summary | |
---|---|
protected void |
activate()
|
void |
addInstrumentToActivate(Instrument ins)
Adds an instrument to activate. |
void |
addInstrumentToInactivate(Instrument ins)
Adds an instrument to inactivate. |
boolean |
canDo()
|
protected void |
deactivate()
|
protected void |
doActionBody()
This method contains the core code to execute when the action is executed. |
void |
flush()
When an action is no more useful it can be flushes to release the used data. |
boolean |
isRegisterable()
Specifies if the action must be saved in the action register. |
void |
setActivateFirst(boolean activateFirst)
|
void |
setHideWidgets(boolean hideWidgets)
|
Methods inherited from class org.malai.action.Action |
---|
abort, cancelledBy, doIt, done, getStatus, hadEffect, isDone, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List<Instrument> insActivate
protected java.util.List<Instrument> insInactivate
protected boolean activateFirst
protected boolean hideWidgets
Constructor Detail |
---|
public ActivateInactivateInstruments()
Method Detail |
---|
public void flush()
Action
flush
in class Action
protected void doActionBody()
Action
doActionBody
in class Action
protected void deactivate()
protected void activate()
public void addInstrumentToActivate(Instrument ins)
ins
- The instrument to activate.public void setHideWidgets(boolean hideWidgets)
hideWidgets
- Defines if the widgets of WidgetInstrument instances must be hidden during their deactivation.public void addInstrumentToInactivate(Instrument ins)
ins
- The instrument to inactivate.public boolean canDo()
canDo
in class Action
public boolean isRegisterable()
Action
isRegisterable
in class Action
public void setActivateFirst(boolean activateFirst)
activateFirst
- True: the activations will be performed before the inactivations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |