jmri
Interface ModifiedFlag

All Known Implementing Classes:
AbstractBoardProgFrame, AbstractMonFrame, AcelaMonFrame, AcelaPacketGenFrame, AlignTableFrame, AlmBrowserFrame, AnalogClockFrame, AutomatTableFrame, BDL16Frame, BeanTableFrame, BlockBossFrame, BoosterProgFrame, CanSendFrame, CbusConsoleFrame, CbusEventFilterFrame, ClockMonFrame, ClockMonFrame, CmdStnConfigFrame, ConfigToolFrame, ConsistToolFrame, CoordinateEdit, DataSource, DebuggerFrame, DiagnosticFrame, DiagnosticFrame, DS64Frame, DualDecoderSelectFrame, EasyDccMonFrame, EasyDccPacketGenFrame, EditorFrame, EditorFrame, EliteFrame, FollowerFrame, HexFileFrame, JmriJFrame, LayoutCoordinateEdit, LayoutEditor, LcdClockFrame, LI100Frame, LI100Frame, LI101Frame, LI101PortFrame, ListFrame, ListFrame, LIUSBFrame, LnTcpDriverFrame, LoaderFrame, LoaderFrame, LoaderFrame, LocoBufferFrame, LocoGenFrame, LocoIdFrame, LocoIOFrame, LocoMonFrame, LocoStatsFrame, LogFrame, LV102Frame, LZ100Frame, LZV100Frame, MessageFrame, MonitorFrame, MrcMonFrame, MS100Frame, MultiSensorIconFrame, Mx1MonFrame, NceConsistEditFrame, NceMacroEditFrame, NceMacroGenFrame, NceMonFrame, NcePacketGenFrame, NcePacketMonitorFrame, NetworkDriverFrame, NetworkDriverFrame, NetworkDriverFrame, NixieClockFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeTableFrame, OsIndicatorFrame, PacketGenFrame, PacketGenFrame, PacketGenFrame, PacketTableFrame, PanelEditor, PaneOpsProgFrame, PaneProgFrame, PaneServiceProgFrame, PM4Frame, PollTableFrame, PowerPanelFrame, QsiMonFrame, RenumberFrame, RpsMonFrame, RpsTrackingFrame, SE8Frame, SendPacketFrame, SensorGroupFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPortFrame, SerialSensorFrame, ServerFrame, SimpleClockFrame, SimpleLightCtrlFrame, SimpleProgFrame, SimpleTurnoutCtrlFrame, SlotMonFrame, SoundSetFrame, SpeedometerFrame, SplashWindow, SprogConsoleFrame, SprogHexFile, SprogIIUpdateFrame, SprogMonFrame, SprogPacketGenFrame, SprogSlotMonFrame, SprogUpdateFrame, Sprogv4UpdateFrame, SprogVersionFrame, SRCPMonFrame, StackMonFrame, StatusFrame, SymbolicProgFrame, SystemInfoFrame, ThrottleFrame, TreeFrame, UsbDriverFrame, XNetMonFrame, XnTcpFrame, XpaConfigureFrame, XpaMonFrame, XpaPacketGenFrame, ZimoPacketGenFrame, ZTC640Frame

public interface ModifiedFlag

Tags objects that remember whether they've been modified and need to be (optionally) stored, for example before the program terminates or when a window closes.

The default state of an object is undefined.

The modified flag is not a bound parameter


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but 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.

Since:
2.1.6
Author:
Bob Jacobsen Copyright (C) 2008

Method Summary
 boolean getModifiedFlag()
          Get the current value of the modified flag.
 void setModifiedFlag(boolean flag)
          Set the modified flag to a specific value
 

Method Detail

setModifiedFlag

void setModifiedFlag(boolean flag)
Set the modified flag to a specific value

Parameters:
flag - true if the object has been modified

getModifiedFlag

boolean getModifiedFlag()
Get the current value of the modified flag.

Returns:
true if the object has been modified and needs to be stored


Copyright © 1997 - 2008 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: SourceForge_Logo