Search in sources :

Example 1 with IEntityLayout

use of org.whole.lang.ui.layout.IEntityLayout in project whole by wholeplatform.

the class FilterPart method setDetailed.

@Override
public void setDetailed(boolean value, IEntityPart childPart) {
    if (isDetailed() == value)
        return;
    super.setDetailed(value, childPart);
    IEntityLayout lm = (IEntityLayout) getFigure().getLayoutManager();
    lm.setSpacedChild(value ? IEntityLayout.SPACED_ALL : IEntityLayout.SPACED_NONE);
    new AnimableRunnable() {

        public void doRun() {
            getFigure().revalidate();
            getFigure().repaint();
        }
    }.syncExec();
}
Also used : IEntityLayout(org.whole.lang.ui.layout.IEntityLayout) AnimableRunnable(org.whole.lang.ui.util.AnimableRunnable)

Example 2 with IEntityLayout

use of org.whole.lang.ui.layout.IEntityLayout in project whole by wholeplatform.

the class NodeFigure method getLayoutManager.

@Override
public IEntityLayout getLayoutManager() {
    IEntityLayout layoutManager = super.getLayoutManager();
    if (layoutManager == null) {
        setLayoutManager(new MonoLayout());
        layoutManager = super.getLayoutManager();
    }
    return layoutManager;
}
Also used : IEntityLayout(org.whole.lang.ui.layout.IEntityLayout) MonoLayout(org.whole.lang.ui.layout.MonoLayout)

Example 3 with IEntityLayout

use of org.whole.lang.ui.layout.IEntityLayout in project whole by wholeplatform.

the class AsPart method setDetailed.

@Override
public void setDetailed(boolean value, IEntityPart childPart) {
    if (isDetailed() == value)
        return;
    super.setDetailed(value, childPart);
    IEntityLayout lm = (IEntityLayout) getFigure().getLayoutManager();
    lm.setSpacedChild(value ? IEntityLayout.SPACED_ALL : IEntityLayout.SPACED_NONE);
    new AnimableRunnable() {

        public void doRun() {
            getFigure().revalidate();
            getFigure().repaint();
        }
    }.syncExec();
}
Also used : IEntityLayout(org.whole.lang.ui.layout.IEntityLayout) AnimableRunnable(org.whole.lang.ui.util.AnimableRunnable)

Example 4 with IEntityLayout

use of org.whole.lang.ui.layout.IEntityLayout in project whole by wholeplatform.

the class SingletonPart method setDetailed.

@Override
public void setDetailed(boolean value, IEntityPart childPart) {
    if (isDetailed() == value)
        return;
    super.setDetailed(value, childPart);
    IEntityLayout lm = (IEntityLayout) getFigure().getLayoutManager();
    lm.setSpacedChild(value ? IEntityLayout.SPACED_ALL : IEntityLayout.SPACED_NONE);
    new AnimableRunnable() {

        public void doRun() {
            getFigure().revalidate();
            getFigure().repaint();
        }
    }.syncExec();
}
Also used : IEntityLayout(org.whole.lang.ui.layout.IEntityLayout) AnimableRunnable(org.whole.lang.ui.util.AnimableRunnable)

Example 5 with IEntityLayout

use of org.whole.lang.ui.layout.IEntityLayout in project whole by wholeplatform.

the class DataTerminalPart method setDetailed.

@Override
public void setDetailed(boolean value, IEntityPart childPart) {
    if (isDetailed() == value)
        return;
    super.setDetailed(value, childPart);
    IEntityLayout lm = (IEntityLayout) getFigure().getLayoutManager();
    lm.setSpacedChild(value ? IEntityLayout.SPACED_ALL : IEntityLayout.SPACED_NONE);
    new AnimableRunnable() {

        public void doRun() {
            getFigure().revalidate();
            getFigure().repaint();
        }
    }.syncExec();
}
Also used : IEntityLayout(org.whole.lang.ui.layout.IEntityLayout) AnimableRunnable(org.whole.lang.ui.util.AnimableRunnable)

Aggregations

IEntityLayout (org.whole.lang.ui.layout.IEntityLayout)7 AnimableRunnable (org.whole.lang.ui.util.AnimableRunnable)6 MonoLayout (org.whole.lang.ui.layout.MonoLayout)1