|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.instrument.Instrument
org.malai.instrument.WidgetInstrument
net.sf.latexdraw.instruments.PreferencesActivator
public class PreferencesActivator
This instrument activates the preferences setter and shows the preferences frame.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw 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.
LaTeXDraw 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.
01/18/11
Field Summary | |
---|---|
protected PreferencesFrame |
preferenceFrame
The frame containing the widgets of the preferences setter. |
protected PreferencesSetter |
prefSetter
The instrument that modifies the preferences. |
protected MMenuItem |
showPreferencesMenu
The menu item used to activate the setter. |
Fields inherited from class org.malai.instrument.WidgetInstrument |
---|
composer |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
PreferencesActivator(UIComposer<?> composer,
PreferencesSetter prefSetter)
Creates the instrument. |
Method Summary | |
---|---|
MMenuItem |
getShowPreferencesMenu()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
PreferencesFrame |
initialisePreferencesFrame()
Initialises and returns the preferences frame. |
protected void |
initialiseWidgets()
Initialises the widgets of the instrument. |
Methods inherited from class org.malai.instrument.WidgetInstrument |
---|
getComposer, setActivated |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, interimFeedback, isActivated, isModified, load, onActionAborted, onActionAdded, onActionCancelled, onActionDone, onActionExecuted, onUndoableAdded, onUndoableRedo, onUndoableUndo, reinit, removeLink, save, setActivated, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PreferencesFrame preferenceFrame
protected MMenuItem showPreferencesMenu
protected PreferencesSetter prefSetter
Constructor Detail |
---|
public PreferencesActivator(UIComposer<?> composer, PreferencesSetter prefSetter)
composer
- The composer that manages the widgets of the instrument.prefSetter
- The instrument that modifies the preferences.
java.lang.IllegalArgumentException
- If the given instrument is null.Method Detail |
---|
protected void initialiseWidgets()
WidgetInstrument
initialiseWidgets
in class WidgetInstrument
protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public PreferencesFrame initialisePreferencesFrame()
public MMenuItem getShowPreferencesMenu()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |