org.tentackle.fx.container.FxSplitPane Maven / Gradle / Ivy
/*
* Tentackle - https://tentackle.org.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package org.tentackle.fx.container;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ReadOnlyBooleanProperty;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.control.SplitPane;
import org.tentackle.fx.FxContainer;
import org.tentackle.fx.FxController;
import org.tentackle.fx.ModelToViewListener;
import org.tentackle.fx.ViewToModelListener;
import org.tentackle.fx.container.delegate.FxSplitPaneDelegate;
/**
* Extended SplitPane.
*
* @author harald
*/
public class FxSplitPane extends SplitPane implements FxContainer {
/**
* Creates a new SplitPane with no content.
*/
public FxSplitPane() {
super();
}
/**
* Creates a new SplitPane with the given items set as the content to split between one or more dividers.
*
* @param items The items to place inside the SplitPane.
*/
public FxSplitPane(Node... items) {
super(items);
}
// @wurblet delegate Include $currentDir/fxcontainer.include
////GEN-BEGIN:delegate
private /**/FxSplitPaneDelegate/**/ delegate; // @wurblet < Inject ${classname}Delegate
/**
* Creates the delegate.
*
* @return the delegate
*/
protected /**/FxSplitPaneDelegate/**/ createDelegate() { // @wurblet < Inject ${classname}Delegate
return new /**/FxSplitPaneDelegate/**/(this); // @wurblet < Inject ${classname}Delegate
}
@Override
public /**/FxSplitPaneDelegate/**/ getDelegate() { // @wurblet < Inject ${classname}Delegate
if (delegate == null) {
delegate = createDelegate();
}
return delegate;
}
@Override
public FxContainer getParentContainer() {
return getDelegate().getParentContainer();
}
@Override
public ObservableList> getComponents() {
return getDelegate().getComponents();
}
@Override
public void setChangeable(boolean changeable) {
getDelegate().setChangeable(changeable);
}
@Override
public boolean isChangeable() {
return getDelegate().isChangeable();
}
@Override
public void setContainerChangeable(boolean containerChangeable) {
getDelegate().setContainerChangeable(containerChangeable);
}
@Override
public void setContainerChangableIgnored(boolean containerChangeableIgnored) {
getDelegate().setContainerChangableIgnored(containerChangeableIgnored);
}
@Override
public boolean isContainerChangeableIgnored() {
return getDelegate().isContainerChangeableIgnored();
}
@Override
public ReadOnlyBooleanProperty changeableProperty() {
return getDelegate().changeableProperty();
}
@Override
public void updateViewNonFocused() {
getDelegate().updateViewNonFocused();
}
@Override
public void updateView() {
getDelegate().updateView();
}
@Override
public void updateModel() {
getDelegate().updateModel();
}
@Override
public void saveView() {
getDelegate().saveView();
}
@Override
public void invalidateSavedView() {
getDelegate().invalidateSavedView();
}
@Override
public void triggerViewModified() {
getDelegate().triggerViewModified();
}
@Override
public void setViewModified(boolean viewModified) {
getDelegate().setViewModified(viewModified);
}
@Override
public boolean isViewModified() {
return getDelegate().isViewModified();
}
@Override
public BooleanProperty viewModifiedProperty() {
return getDelegate().viewModifiedProperty();
}
@Override
public void setBindable(boolean bindable) {
getDelegate().setBindable(bindable);
}
@Override
public boolean isBindable() {
return getDelegate().isBindable();
}
@Override
public void setHelpUrl(String helpUrl) {
getDelegate().setHelpUrl(helpUrl);
}
@Override
public String getHelpUrl() {
return getDelegate().getHelpUrl();
}
@Override
public void showHelp() {
getDelegate().showHelp();
}
@Override
public String toGenericString() {
return getDelegate().toGenericString();
}
@Override
public void clearErrors() {
getDelegate().clearErrors();
}
@Override
public FxController getController() {
return getDelegate().getController();
}
@Override
public void setController(FxController controller) {
getDelegate().setController(controller);
}
@Override
public C getController(Class clazz) {
return getDelegate().getController(clazz);
}
@Override
public void addModelToViewListener(ModelToViewListener listener) {
getDelegate().addModelToViewListener(listener);
}
@Override
public void removeModelToViewListener(ModelToViewListener listener) {
getDelegate().removeModelToViewListener(listener);
}
@Override
public void addViewToModelListener(ViewToModelListener listener) {
getDelegate().addViewToModelListener(listener);
}
@Override
public void removeViewToModelListener(ViewToModelListener listener) {
getDelegate().removeViewToModelListener(listener);
}
// //GEN-END:delegate
}