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();
}
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;
}
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();
}
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();
}
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();
}
Aggregations