test_class.declarator: areaPicker
test_class.modifier: private
test_class.original_string: private AreaPicker areaPicker;
test_class.type: AreaPicker
test_class.var_name: areaPicker
test_class.file: thai-widget/src/test/java/nectec/thai/widget/unit/AreaPickerTest.java
test_class.identifier: AreaPickerTest
test_case.body: @Test
      public void testResetArea() throws Exception {
          areaPicker.setArea(new Area(2, 0, 30));
  
          areaPicker.setArea(new Area(0));
  
          assertEquals("", areaPicker.getText());
      }
test_case.class_method_signature: AreaPickerTest.testResetArea()
test_case.full_signature: @Test public void testResetArea()
test_case.identifier: testResetArea
test_case.invocations: setArea setArea assertEquals getText
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testResetArea()
focal_class.declarator: DEFAULT_HINT = "ระบุขนาดพื้นที่";
focal_class.modifier: protected static final
focal_class.original_string: protected static final String DEFAULT_HINT = "ระบุขนาดพื้นที่";
focal_class.type: String
focal_class.var_name: DEFAULT_HINT
focal_class.declarator: popup
focal_class.modifier: private
focal_class.original_string: private AreaPopup popup;
focal_class.type: AreaPopup
focal_class.var_name: popup
focal_class.declarator: area = new Area(0)
focal_class.modifier: private
focal_class.original_string: private Area area = new Area(0);
focal_class.type: Area
focal_class.var_name: area
focal_class.declarator: listener
focal_class.modifier: private
focal_class.original_string: private OnAreaChangedListener listener;
focal_class.type: OnAreaChangedListener
focal_class.var_name: listener
focal_class.declarator: dialogListener = new OnAreaPickListener() {
          @Override
          public void onAreaPick(Area area) {
              setArea(area);
          }
  
          @Override
          public void onCancel() {
              setArea(new Area(0));
              setText(null);
          }
      }
focal_class.modifier: private final
focal_class.original_string: private final OnAreaPickListener dialogListener = new OnAreaPickListener() {
          @Override
          public void onAreaPick(Area area) {
              setArea(area);
          }
  
          @Override
          public void onCancel() {
              setArea(new Area(0));
              setText(null);
          }
      };
focal_class.type: OnAreaPickListener
focal_class.var_name: dialogListener
focal_class.file: thai-widget/src/main/java/nectec/thai/widget/unit/AreaPicker.java
focal_class.identifier: AreaPicker
focal_class.interfaces: implements AreaView, OnClickListener
focal_class.class_method_signature: AreaPicker.AreaPicker(Context context)
focal_class.full_signature: public  AreaPicker(Context context)
focal_class.identifier: AreaPicker
focal_class.modifiers: public
focal_class.parameters: (Context context)
focal_class.signature:  AreaPicker(Context context)
focal_class.class_method_signature: AreaPicker.AreaPicker(Context context, AttributeSet attrs)
focal_class.full_signature: public  AreaPicker(Context context, AttributeSet attrs)
focal_class.identifier: AreaPicker
focal_class.modifiers: public
focal_class.parameters: (Context context, AttributeSet attrs)
focal_class.signature:  AreaPicker(Context context, AttributeSet attrs)
focal_class.class_method_signature: AreaPicker.AreaPicker(Context context, AttributeSet attrs, int defStyleAttr)
focal_class.full_signature: public  AreaPicker(Context context, AttributeSet attrs, int defStyleAttr)
focal_class.identifier: AreaPicker
focal_class.modifiers: public
focal_class.parameters: (Context context, AttributeSet attrs, int defStyleAttr)
focal_class.signature:  AreaPicker(Context context, AttributeSet attrs, int defStyleAttr)
focal_class.class_method_signature: AreaPicker.setupPickerDialog()
focal_class.full_signature: private void setupPickerDialog()
focal_class.identifier: setupPickerDialog
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void setupPickerDialog()
focal_class.class_method_signature: AreaPicker.onDraw(Canvas canvas)
focal_class.full_signature: @Override protected void onDraw(Canvas canvas)
focal_class.identifier: onDraw
focal_class.modifiers: @Override protected
focal_class.parameters: (Canvas canvas)
focal_class.return: void
focal_class.signature: void onDraw(Canvas canvas)
focal_class.class_method_signature: AreaPicker.getArea()
focal_class.full_signature: @Override public Area getArea()
focal_class.identifier: getArea
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Area
focal_class.signature: Area getArea()
focal_class.class_method_signature: AreaPicker.onClick(View view)
focal_class.full_signature: @Override public void onClick(View view)
focal_class.identifier: onClick
focal_class.modifiers: @Override public
focal_class.parameters: (View view)
focal_class.return: void
focal_class.signature: void onClick(View view)
focal_class.class_method_signature: AreaPicker.onSaveInstanceState()
focal_class.full_signature: @Override public Parcelable onSaveInstanceState()
focal_class.identifier: onSaveInstanceState
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Parcelable
focal_class.signature: Parcelable onSaveInstanceState()
focal_class.class_method_signature: AreaPicker.onRestoreInstanceState(Parcelable state)
focal_class.full_signature: @Override public void onRestoreInstanceState(Parcelable state)
focal_class.identifier: onRestoreInstanceState
focal_class.modifiers: @Override public
focal_class.parameters: (Parcelable state)
focal_class.return: void
focal_class.signature: void onRestoreInstanceState(Parcelable state)
focal_class.class_method_signature: AreaPicker.setArea(Area area)
focal_class.full_signature: @Override public void setArea(Area area)
focal_class.identifier: setArea
focal_class.modifiers: @Override public
focal_class.parameters: (Area area)
focal_class.return: void
focal_class.signature: void setArea(Area area)
focal_class.class_method_signature: AreaPicker.setMaxRai(int maxRai)
focal_class.full_signature: public void setMaxRai(int maxRai)
focal_class.identifier: setMaxRai
focal_class.modifiers: public
focal_class.parameters: (int maxRai)
focal_class.return: void
focal_class.signature: void setMaxRai(int maxRai)
focal_class.class_method_signature: AreaPicker.setTitle(String title)
focal_class.full_signature: public void setTitle(String title)
focal_class.identifier: setTitle
focal_class.modifiers: public
focal_class.parameters: (String title)
focal_class.return: void
focal_class.signature: void setTitle(String title)
focal_class.class_method_signature: AreaPicker.setOnAreaChangeListener(OnAreaChangedListener listener)
focal_class.full_signature: public void setOnAreaChangeListener(OnAreaChangedListener listener)
focal_class.identifier: setOnAreaChangeListener
focal_class.modifiers: public
focal_class.parameters: (OnAreaChangedListener listener)
focal_class.return: void
focal_class.signature: void setOnAreaChangeListener(OnAreaChangedListener listener)
focal_class.superclass: extends AppCompatEditText
focal_method.body: @Override public void setArea(Area area) {
          if (area == null)
              throw new IllegalArgumentException("area must not be null");
          this.area = area;
          setText(area.prettyPrint());
          if (listener != null)
              listener.onAreaChanged(area);
      }
focal_method.class_method_signature: AreaPicker.setArea(Area area)
focal_method.full_signature: @Override public void setArea(Area area)
focal_method.identifier: setArea
focal_method.invocations: setText prettyPrint onAreaChanged
focal_method.modifiers: @Override public
focal_method.parameters: (Area area)
focal_method.return: void
focal_method.signature: void setArea(Area area)