propsPanel.add(new HFlexBox()
.add(new Label("name"))
.add(all_name));
EventBus.getSystem().addListener(all_name, ActionEvent.Action, new Callback<Event>() {
public void call(Event event) throws Exception {
Selection sel = ctx.getSelection();
if (sel.size() == 1) {
SNode n = sel.firstItem();
n.setId(all_name.getText());
}
}
});
//cache
//name
all_cache = new Checkbox("cache");
EventBus.getSystem().addListener(all_cache, ActionEvent.Action, new Callback<Event>() {
public void call(Event event) throws Exception {
Selection sel = ctx.getSelection();
if (sel.size() == 1) {
SNode n = sel.firstItem();
n.setBooleanProperty("com.joshondesign.amino.nodecache",all_cache.isSelected());
}
}
});
propsPanel.add(all_cache);
//cache as png image
all_cache_image = new Checkbox("cache as image");
EventBus.getSystem().addListener(all_cache_image, ActionEvent.Action, new Callback<Event>() {
public void call(Event event) throws Exception {
Selection sel = ctx.getSelection();
if (sel.size() == 1) {
SNode n = sel.firstItem();
n.setBooleanProperty("com.joshondesign.amino.nodecacheimage",all_cache_image.isSelected());
}
}
});
propsPanel.add(all_cache_image);
//text
//cache as dynamic bitmap text
bitmap_text = new Checkbox("use bitmap text");
EventBus.getSystem().addListener(bitmap_text, ActionEvent.Action, new Callback<Event>() {
public void call(Event event) throws Exception {
Selection sel = ctx.getSelection();
if (sel.size() == 1) {
SNode n = sel.firstItem();
n.setBooleanProperty("com.joshondesign.amino.bitmaptext",bitmap_text.isSelected());
}
}
});
propsPanel.add(bitmap_text);