コード例 #1
0
 @Override
 public void readNetworkComponent(DataReader dr) {
   boolean isNumber = dr.readBoolean();
   if (isNumber) {
     textBox.setNumber(dr.readData(DataBitHelper.MENU_REDSTONE_ANALOG));
   } else {
     int type = dr.readData(DataBitHelper.MENU_REDSTONE_OUTPUT_TYPE);
     radioButtons.setSelectedOption(type);
   }
 }
コード例 #2
0
 @Override
 public void readNetworkComponent(DataReader dr) {
   int id = dr.readData(DataBitHelper.CONTAINER_TYPE);
   checked[id] = dr.readBoolean();
 }
コード例 #3
0
 @Override
 public void readData(DataReader dr) {
   textBox.setNumber(dr.readData(DataBitHelper.MENU_REDSTONE_ANALOG));
   radioButtons.setSelectedOption(dr.readData(DataBitHelper.MENU_REDSTONE_OUTPUT_TYPE));
 }
コード例 #4
0
 @Override
 public void readData(DataReader dr) {
   for (int i = 0; i < checked.length; i++) {
     checked[i] = dr.readBoolean();
   }
 }