use of org.whole.lang.ui.util.AnimableRunnable 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.util.AnimableRunnable 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.util.AnimableRunnable in project whole by wholeplatform.
the class ContentPaneFigure method createFoldingToggle.
public Toggle createFoldingToggle(Toggle toggle, final int paneIndexOrTag, int... paneIndexes) {
toggle.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
new AnimableRunnable() {
public void doRun() {
toggleVisibility(paneIndexOrTag);
}
}.syncExec();
}
});
createActionableFoldingToggle(toggle, paneIndexes);
bindFoldingToggle(foldingToggles.size() - 1, paneIndexOrTag);
return toggle;
}
use of org.whole.lang.ui.util.AnimableRunnable 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.util.AnimableRunnable 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