示例#1
0
    @Override
    public void bind(Property property, Component view, UpdateTime updateTime) {
      //			System.out.println("bind:" + view.getName() + " - " + view);
      if (view instanceof JRadioButton) {
        button = (JRadioButton) view;
        super.bind(property, view, updateTime);

        String bindVal = button.getName();
        bindVal = bindVal.substring(bindVal.indexOf(".") + 1);

        selected = Enum.valueOf(property.getType(), bindVal);
      }
    }