示例#1
0
 private void saveSubButton(JSONObject MBData, int layer) {
   ButtonEntity bTemp = new ButtonFor_Sub();
   bTemp.setName(MBData.getString("name"));
   ButtonModel bM = new ButtonModel();
   bM.setButton(bTemp, 3);
   bM.setLayer(1);
   allMenuButtons.add(bM);
 }
示例#2
0
 private void saveMediaButton(JSONObject MBData, int layer) {
   ButtonEntity bTemp = new ButtonForMedia();
   bTemp.setMedia_id(MBData.getString("media_id"));
   bTemp.setName(MBData.getString("name"));
   bTemp.setType(MBData.getString("type"));
   ButtonModel bM = new ButtonModel();
   bM.setButton(bTemp, 2);
   bM.setLayer(layer);
   allMenuButtons.add(bM);
 }
示例#3
0
 private void saveURLButton(JSONObject MBData, int layer) {
   ButtonEntity bTemp = new ButtonForURL();
   bTemp.setUrl(MBData.getString("url"));
   bTemp.setName(MBData.getString("name"));
   bTemp.setType(MBData.getString("type"));
   ButtonModel bM = new ButtonModel();
   bM.setButton(bTemp, 1);
   bM.setLayer(layer);
   allMenuButtons.add(bM);
 }
示例#4
0
 private void saveKeyButton(JSONObject MBData, int layer) {
   ButtonEntity bTemp = new ButtonForClick();
   bTemp.setKey(MBData.getString("key"));
   bTemp.setName(MBData.getString("name"));
   bTemp.setType(MBData.getString("type"));
   ButtonModel bM = new ButtonModel();
   bM.setButton(bTemp, 0);
   bM.setLayer(layer);
   allMenuButtons.add(bM);
 }