コード例 #1
0
 public static void onCraftTypeChanged(final SelectionChangedEvent e, final CraftView view) {
   final byte id = (byte) (e.isSelected() ? 0 : 1);
   view.setCurrentType(CraftType.getFromId(id));
   PropertiesProvider.getInstance().setPropertyValue("craftDisplayType", id);
 }
コード例 #2
0
 public static void switchToFreeMode(final SelectionChangedEvent e) {
   final UIMessage msg = new UIMessage();
   msg.setId(16851);
   msg.setBooleanValue(e.isSelected());
   Worker.getInstance().pushMessage(msg);
 }