Class RuleEditorsController
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.app.AbstractController
-
- net.sourceforge.pmd.util.fxdesigner.RuleEditorsController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
,ApplicationComponent
,SettingsOwner
public class RuleEditorsController extends AbstractController
Controller for all rule editors. Interfaces between the main app and the individual editors. Also handles persisting the editors (under the form of rule builders).Each
XPathRuleEditorController
has its ownDesignerRoot
with scopes some services down to it (seenewScope()
). This allows keeping several rule editors independent, this class being the bridge between the selected one and the static top of the app.- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description RuleEditorsController(DesignerRoot parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterChildrenInit()
Runs once after every child has finished their initialization.void
afterParentInit()
Executed after the parent's initialization (so afterAbstractController.afterChildrenInit()
).protected void
beforeParentInit()
Executed before the parent's initialization.org.reactfx.value.Val<java.util.List<net.sourceforge.pmd.lang.ast.Node>>
currentRuleResults()
javafx.collections.ObservableList<ObservableXPathRuleBuilder>
getRuleSpecs()
int
getSelectedTabIndex()
DesignerRoot
newScope()
void
setSelectedTabIndex(int i)
-
Methods inherited from class net.sourceforge.pmd.util.fxdesigner.app.AbstractController
getChildren, getChildrenSettingsNodes, getDesignerRoot, initialize, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.ApplicationComponent
getDebugName, getGlobalLanguageVersion, getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, languageBindingsProperty, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
Constructor Detail
-
RuleEditorsController
public RuleEditorsController(DesignerRoot parent)
-
-
Method Detail
-
beforeParentInit
protected void beforeParentInit()
Description copied from class:AbstractController
Executed before the parent's initialization. Always executed once at the start of the initialization of this controller.- Overrides:
beforeParentInit
in classAbstractController
-
afterParentInit
public void afterParentInit()
Description copied from class:AbstractController
Executed after the parent's initialization (so afterAbstractController.afterChildrenInit()
). This also means, after persistent settings restoration. If this node has no parent, then this is never executed.- Overrides:
afterParentInit
in classAbstractController
-
afterChildrenInit
protected void afterChildrenInit()
Description copied from class:AbstractController
Runs once after every child has finished their initialization. This will be run in all cases. It's only useful if the children do something useful in theirAbstractController.afterParentInit()
.- Overrides:
afterChildrenInit
in classAbstractController
-
newScope
public DesignerRoot newScope()
-
currentRuleResults
public org.reactfx.value.Val<java.util.List<net.sourceforge.pmd.lang.ast.Node>> currentRuleResults()
-
getSelectedTabIndex
public int getSelectedTabIndex()
-
setSelectedTabIndex
public void setSelectedTabIndex(int i)
-
getRuleSpecs
public javafx.collections.ObservableList<ObservableXPathRuleBuilder> getRuleSpecs()
-
-