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
XPathRuleEditorControllerhas its ownDesignerRootwith 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 voidafterChildrenInit()Runs once after every child has finished their initialization.voidafterParentInit()Executed after the parent's initialization (so afterAbstractController.afterChildrenInit()).protected voidbeforeParentInit()Executed before the parent's initialization.org.reactfx.value.Val<List<net.sourceforge.pmd.lang.ast.Node>>currentRuleResults()javafx.collections.ObservableList<ObservableXPathRuleBuilder>getRuleSpecs()intgetSelectedTabIndex()DesignerRootnewScope()voidsetSelectedTabIndex(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, 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:AbstractControllerExecuted before the parent's initialization. Always executed once at the start of the initialization of this controller.- Overrides:
beforeParentInitin classAbstractController
-
afterParentInit
public void afterParentInit()
Description copied from class:AbstractControllerExecuted 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:
afterParentInitin classAbstractController
-
afterChildrenInit
protected void afterChildrenInit()
Description copied from class:AbstractControllerRuns 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:
afterChildrenInitin classAbstractController
-
newScope
public DesignerRoot newScope()
-
currentRuleResults
public org.reactfx.value.Val<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()
-
-