jmri
Interface ModifiedFlag

All Known Implementing Classes:
AbstractAudioFrame, AbstractMonFrame, AbstractPacketGenFrame, AcelaMonFrame, AcelaPacketGenFrame, AddSensorJFrame, AddSignalMastJFrame, AlignTableFrame, AlmBrowserFrame, AnalogClockFrame, AudioBufferFrame, AudioListenerFrame, AudioSourceFrame, AudioTableFrame, AutomatTableFrame, AutoTrainsFrame, BackupFrame, BeanTableFrame, BlockBossFrame, CanSendFrame, CarAttributeEditFrame, CarEditFrame, CarLoadEditFrame, CarSetFrame, CarsSetFrame, CarsTableFrame, CbusConsoleFrame, CbusEventFilterFrame, CbusEventTableFrame, CircuitBuilder, ConfigToolFrame, ConsistToolFrame, ControllerFilterFrame, ControlPanelEditor, CoordinateEdit, DataSource, DebuggerFrame, DecoderPro3Window, DiagnosticFrame, DispatcherFrame, DualDecoderSelectFrame, EasyDccMonFrame, EasyDccPacketGenFrame, EditCircuitFrame, EditCircuitPaths, Editor, Editor.JFrameItem, EditorFrame, EditPortalFrame, EngineAttributeEditFrame, EngineEditFrame, EngineSetFrame, EnginesTableFrame, FollowerFrame, HexFileFrame, ImageIndexEditor, InterchangeEditFrame, ItemPalette, JMRIClientMonFrame, JmriJFrame, JmriServerFrame, JmriSRCPServerFrame, LayoutEditor, LcdClockFrame, LearnThrottleFrame, LI101Frame, ListedTableFrame, ListFrame, ListFrame, LIUSBConfigFrame, LoaderFrame, LocationEditFrame, LocationsByCarTypeFrame, LocationsTableFrame, LocoMonFrame, LogFrame, LV102Frame, LZ100Frame, LZV100Frame, MdiMainFrame, MemoryIconCoordinateEdit, MiniServerPrefsFrame, MonFrame, MonitorFrame, MonitorFrame, MonitorFrame, MrcMonFrame, MultiPaneWindow, MultiSensorIconFrame, Mx1MonFrame, NetworkPortFrame, NixieClockFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigFrame, NodeConfigToolFrame, NodeTableFrame, OpenLcbCanSendFrame, OperationsFrame, OperationsSetupFrame, OptionFrame, OptionFrame, OsIndicatorFrame, PacketGenFrame, PacketGenFrame, PacketGenFrame, PacketGenFrame, PacketGenFrame, PacketGenFrame, PacketTableFrame, PanelEditor, PanelProFrame, PaneOpsProgFrame, PaneProgFrame, PaneServiceProgFrame, PickFrame, PollTableFrame, PowerPanelFrame, PowerPanelFrame, PreferencesFrame, PrintCarLoadsAction.CarPrintOptionFrame, PrintCarRosterAction.CarPrintOptionFrame, PrintLocationsAction.LocationPrintOptionFrame, PrintOptionFrame, QsiMonFrame, RenumberFrame, ReportFrame, RestoreFrame, RollingStockSetFrame, RosterGroupTableFrame, RouteCopyFrame, RouteEditFrame, RoutesTableFrame, RpsMonFrame, RpsTrackingFrame, ScheduleEditFrame, SchedulesTableFrame, SendPacketFrame, SensorGroupFrame, SensorTextEdit, SerialDriverFrame, SerialDriverFrame, SerialDriverFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialMonFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPacketGenFrame, SerialPortFrame, SerialSensorFrame, ServerFrame, SetTrainIconPositionFrame, SetTrainIconRouteFrame, SidingEditFrame, SignallingFrame, SignallingSourceFrame, SimpleClockFrame, SimpleLightCtrlFrame, SimpleProgFrame, SimpleServerFrame, SimpleTurnoutCtrlFrame, SlipTurnoutTextEdit, SoundSetFrame, SpeedoConsoleFrame, SpeedometerFrame, SplashWindow, SprogConsoleFrame, SprogHexFile, SprogIIUpdateFrame, SprogMonFrame, SprogPacketGenFrame, SprogSlotMonFrame, SprogUpdateFrame, Sprogv4UpdateFrame, SprogVersionFrame, SRCPMonFrame, StackMonFrame, StagingEditFrame, StatusFrame, StatusFrame, SymbolicProgFrame, SystemInfoFrame, TabbedPreferencesFrame, TableFrames, ThreePaneTLRWindow, ThrottleWindow, TieToolFrame, TrackEditFrame, TrainByCarTypeFrame, TrainEditBuildOptionsFrame, TrainEditFrame, TrainsByCarTypeFrame, TrainScriptFrame, TrainsScheduleTableFrame, TrainsScriptFrame, TrainsTableFrame, TrainSwitchListEditFrame, TreeFrame, TwoPaneTBWindow, UserInterface, WarrantFrame, WiThrottlePrefsFrame, XNetMonFrame, XpaConfigureFrame, XpaMonFrame, XpaPacketGenFrame, YardEditFrame, ZimoPacketGenFrame

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 - 2011 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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads