Java 类java.lang.Boolean 实例源码

项目:OpenJSharp    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a check box.
 *
 * @param checkBox  a <code>JCheckBox</code> object
 */
public DefaultCellEditor(final JCheckBox checkBox) {
    editorComponent = checkBox;
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            boolean selected = false;
            if (value instanceof Boolean) {
                selected = ((Boolean)value).booleanValue();
            }
            else if (value instanceof String) {
                selected = value.equals("true");
            }
            checkBox.setSelected(selected);
        }

        public Object getCellEditorValue() {
            return Boolean.valueOf(checkBox.isSelected());
        }
    };
    checkBox.addActionListener(delegate);
    checkBox.setRequestFocusEnabled(false);
}
项目:jdk8u-jdk    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a check box.
 *
 * @param checkBox  a <code>JCheckBox</code> object
 */
public DefaultCellEditor(final JCheckBox checkBox) {
    editorComponent = checkBox;
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            boolean selected = false;
            if (value instanceof Boolean) {
                selected = ((Boolean)value).booleanValue();
            }
            else if (value instanceof String) {
                selected = value.equals("true");
            }
            checkBox.setSelected(selected);
        }

        public Object getCellEditorValue() {
            return Boolean.valueOf(checkBox.isSelected());
        }
    };
    checkBox.addActionListener(delegate);
    checkBox.setRequestFocusEnabled(false);
}
项目:openjdk-jdk10    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a check box.
 *
 * @param checkBox  a <code>JCheckBox</code> object
 */
public DefaultCellEditor(final JCheckBox checkBox) {
    editorComponent = checkBox;
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            boolean selected = false;
            if (value instanceof Boolean) {
                selected = ((Boolean)value).booleanValue();
            }
            else if (value instanceof String) {
                selected = value.equals("true");
            }
            checkBox.setSelected(selected);
        }

        public Object getCellEditorValue() {
            return Boolean.valueOf(checkBox.isSelected());
        }
    };
    checkBox.addActionListener(delegate);
    checkBox.setRequestFocusEnabled(false);
}
项目:openjdk9    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a check box.
 *
 * @param checkBox  a <code>JCheckBox</code> object
 */
public DefaultCellEditor(final JCheckBox checkBox) {
    editorComponent = checkBox;
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            boolean selected = false;
            if (value instanceof Boolean) {
                selected = ((Boolean)value).booleanValue();
            }
            else if (value instanceof String) {
                selected = value.equals("true");
            }
            checkBox.setSelected(selected);
        }

        public Object getCellEditorValue() {
            return Boolean.valueOf(checkBox.isSelected());
        }
    };
    checkBox.addActionListener(delegate);
    checkBox.setRequestFocusEnabled(false);
}
项目:Java8CN    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a check box.
 *
 * @param checkBox  a <code>JCheckBox</code> object
 */
public DefaultCellEditor(final JCheckBox checkBox) {
    editorComponent = checkBox;
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            boolean selected = false;
            if (value instanceof Boolean) {
                selected = ((Boolean)value).booleanValue();
            }
            else if (value instanceof String) {
                selected = value.equals("true");
            }
            checkBox.setSelected(selected);
        }

        public Object getCellEditorValue() {
            return Boolean.valueOf(checkBox.isSelected());
        }
    };
    checkBox.addActionListener(delegate);
    checkBox.setRequestFocusEnabled(false);
}
项目:xDrip    文件:BgReadingMessage.java   
public BgReadingMessage(Long timestamp, Double time_since_sensor_started, Double raw_data, Double filtered_data, Double age_adjusted_raw_value, Boolean calibration_flag, Double calculated_value, Double filtered_calculated_value, Double calculated_value_slope, Double a, Double b, Double c, Double ra, Double rb, Double rc, String uuid, String calibration_uuid, String sensor_uuid, Boolean ignoreforstats, Double raw_calculated, Boolean hide_slope, String noise, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.timestamp = timestamp;
  this.time_since_sensor_started = time_since_sensor_started;
  this.raw_data = raw_data;
  this.filtered_data = filtered_data;
  this.age_adjusted_raw_value = age_adjusted_raw_value;
  this.calibration_flag = calibration_flag;
  this.calculated_value = calculated_value;
  this.filtered_calculated_value = filtered_calculated_value;
  this.calculated_value_slope = calculated_value_slope;
  this.a = a;
  this.b = b;
  this.c = c;
  this.ra = ra;
  this.rb = rb;
  this.rc = rc;
  this.uuid = uuid;
  this.calibration_uuid = calibration_uuid;
  this.sensor_uuid = sensor_uuid;
  this.ignoreforstats = ignoreforstats;
  this.raw_calculated = raw_calculated;
  this.hide_slope = hide_slope;
  this.noise = noise;
}
项目:xDrip    文件:BgReadingMessage.java   
public BgReadingMessage(Long timestamp, Double time_since_sensor_started, Double raw_data, Double filtered_data, Double age_adjusted_raw_value, Boolean calibration_flag, Double calculated_value, Double filtered_calculated_value, Double calculated_value_slope, Double a, Double b, Double c, Double ra, Double rb, Double rc, String uuid, String calibration_uuid, String sensor_uuid, Boolean ignoreforstats, Double raw_calculated, Boolean hide_slope, String noise, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.timestamp = timestamp;
  this.time_since_sensor_started = time_since_sensor_started;
  this.raw_data = raw_data;
  this.filtered_data = filtered_data;
  this.age_adjusted_raw_value = age_adjusted_raw_value;
  this.calibration_flag = calibration_flag;
  this.calculated_value = calculated_value;
  this.filtered_calculated_value = filtered_calculated_value;
  this.calculated_value_slope = calculated_value_slope;
  this.a = a;
  this.b = b;
  this.c = c;
  this.ra = ra;
  this.rb = rb;
  this.rc = rc;
  this.uuid = uuid;
  this.calibration_uuid = calibration_uuid;
  this.sensor_uuid = sensor_uuid;
  this.ignoreforstats = ignoreforstats;
  this.raw_calculated = raw_calculated;
  this.hide_slope = hide_slope;
  this.noise = noise;
}
项目:xDrip-plus    文件:BgReadingMessage.java   
public BgReadingMessage(Long timestamp, Double time_since_sensor_started, Double raw_data, Double filtered_data, Double age_adjusted_raw_value, Boolean calibration_flag, Double calculated_value, Double filtered_calculated_value, Double calculated_value_slope, Double a, Double b, Double c, Double ra, Double rb, Double rc, String uuid, String calibration_uuid, String sensor_uuid, Boolean ignoreforstats, Double raw_calculated, Boolean hide_slope, String noise, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.timestamp = timestamp;
  this.time_since_sensor_started = time_since_sensor_started;
  this.raw_data = raw_data;
  this.filtered_data = filtered_data;
  this.age_adjusted_raw_value = age_adjusted_raw_value;
  this.calibration_flag = calibration_flag;
  this.calculated_value = calculated_value;
  this.filtered_calculated_value = filtered_calculated_value;
  this.calculated_value_slope = calculated_value_slope;
  this.a = a;
  this.b = b;
  this.c = c;
  this.ra = ra;
  this.rb = rb;
  this.rc = rc;
  this.uuid = uuid;
  this.calibration_uuid = calibration_uuid;
  this.sensor_uuid = sensor_uuid;
  this.ignoreforstats = ignoreforstats;
  this.raw_calculated = raw_calculated;
  this.hide_slope = hide_slope;
  this.noise = noise;
}
项目:xDrip-plus    文件:BgReadingMessage.java   
public BgReadingMessage(Long timestamp, Double time_since_sensor_started, Double raw_data, Double filtered_data, Double age_adjusted_raw_value, Boolean calibration_flag, Double calculated_value, Double filtered_calculated_value, Double calculated_value_slope, Double a, Double b, Double c, Double ra, Double rb, Double rc, String uuid, String calibration_uuid, String sensor_uuid, Boolean ignoreforstats, Double raw_calculated, Boolean hide_slope, String noise, ByteString unknownFields) {
  super(ADAPTER, unknownFields);
  this.timestamp = timestamp;
  this.time_since_sensor_started = time_since_sensor_started;
  this.raw_data = raw_data;
  this.filtered_data = filtered_data;
  this.age_adjusted_raw_value = age_adjusted_raw_value;
  this.calibration_flag = calibration_flag;
  this.calculated_value = calculated_value;
  this.filtered_calculated_value = filtered_calculated_value;
  this.calculated_value_slope = calculated_value_slope;
  this.a = a;
  this.b = b;
  this.c = c;
  this.ra = ra;
  this.rb = rb;
  this.rc = rc;
  this.uuid = uuid;
  this.calibration_uuid = calibration_uuid;
  this.sensor_uuid = sensor_uuid;
  this.ignoreforstats = ignoreforstats;
  this.raw_calculated = raw_calculated;
  this.hide_slope = hide_slope;
  this.noise = noise;
}
项目:apollo-android    文件:ReviewInput.java   
ReviewInput(long stars, Input<Long> nullableIntFieldWithDefaultValue, Input<String> commentary,
    @Nonnull ColorInput favoriteColor, Input<Episode> enumWithDefaultValue,
    Input<Episode> nullableEnum, Input<List<Object>> listOfCustomScalar,
    Input<Object> customScalar, Input<List<Episode>> listOfEnums, Input<List<Long>> listOfInt,
    Input<List<String>> listOfString, Input<Boolean> booleanWithDefaultValue) {
  this.stars = stars;
  this.nullableIntFieldWithDefaultValue = nullableIntFieldWithDefaultValue;
  this.commentary = commentary;
  this.favoriteColor = favoriteColor;
  this.enumWithDefaultValue = enumWithDefaultValue;
  this.nullableEnum = nullableEnum;
  this.listOfCustomScalar = listOfCustomScalar;
  this.customScalar = customScalar;
  this.listOfEnums = listOfEnums;
  this.listOfInt = listOfInt;
  this.listOfString = listOfString;
  this.booleanWithDefaultValue = booleanWithDefaultValue;
}
项目:apollo-android    文件:ReviewInput.java   
ReviewInput(long stars, Input<Long> nullableIntFieldWithDefaultValue, Input<String> commentary,
    @Nonnull ColorInput favoriteColor, Input<Episode> enumWithDefaultValue,
    Input<Episode> nullableEnum, Input<List<Object>> listOfCustomScalar,
    Input<Object> customScalar, Input<List<Episode>> listOfEnums, Input<List<Long>> listOfInt,
    Input<List<String>> listOfString, Input<Boolean> booleanWithDefaultValue) {
  this.stars = stars;
  this.nullableIntFieldWithDefaultValue = nullableIntFieldWithDefaultValue;
  this.commentary = commentary;
  this.favoriteColor = favoriteColor;
  this.enumWithDefaultValue = enumWithDefaultValue;
  this.nullableEnum = nullableEnum;
  this.listOfCustomScalar = listOfCustomScalar;
  this.customScalar = customScalar;
  this.listOfEnums = listOfEnums;
  this.listOfInt = listOfInt;
  this.listOfString = listOfString;
  this.booleanWithDefaultValue = booleanWithDefaultValue;
}
项目:apollo-android    文件:ReviewInput.java   
ReviewInput(long stars, Input<Long> nullableIntFieldWithDefaultValue, Input<String> commentary,
    @Nonnull ColorInput favoriteColor, Input<Episode> enumWithDefaultValue,
    Input<Episode> nullableEnum, Input<List<Date>> listOfCustomScalar, Input<Date> customScalar,
    Input<List<Episode>> listOfEnums, Input<List<Long>> listOfInt,
    Input<List<String>> listOfString, Input<Boolean> booleanWithDefaultValue) {
  this.stars = stars;
  this.nullableIntFieldWithDefaultValue = nullableIntFieldWithDefaultValue;
  this.commentary = commentary;
  this.favoriteColor = favoriteColor;
  this.enumWithDefaultValue = enumWithDefaultValue;
  this.nullableEnum = nullableEnum;
  this.listOfCustomScalar = listOfCustomScalar;
  this.customScalar = customScalar;
  this.listOfEnums = listOfEnums;
  this.listOfInt = listOfInt;
  this.listOfString = listOfString;
  this.booleanWithDefaultValue = booleanWithDefaultValue;
}
项目:apollo-android    文件:TestQuery.java   
public Data(@Nullable String graphQlString, @Nullable String graphQlIdNullable,
    @Nonnull String graphQlIdNonNullable, @Nullable Long graphQlIntNullable,
    long graphQlIntNonNullable, @Nullable Double graphQlFloatNullable,
    double graphQlFloatNonNullable, @Nullable Boolean graphQlBooleanNullable,
    boolean graphQlBooleanNonNullable, @Nullable List<Long> graphQlListOfInt,
    @Nullable List<GraphQlListOfObject> graphQlListOfObjects) {
  this.graphQlString = Optional.fromNullable(graphQlString);
  this.graphQlIdNullable = Optional.fromNullable(graphQlIdNullable);
  this.graphQlIdNonNullable = Utils.checkNotNull(graphQlIdNonNullable, "graphQlIdNonNullable == null");
  this.graphQlIntNullable = Optional.fromNullable(graphQlIntNullable);
  this.graphQlIntNonNullable = graphQlIntNonNullable;
  this.graphQlFloatNullable = Optional.fromNullable(graphQlFloatNullable);
  this.graphQlFloatNonNullable = graphQlFloatNonNullable;
  this.graphQlBooleanNullable = Optional.fromNullable(graphQlBooleanNullable);
  this.graphQlBooleanNonNullable = graphQlBooleanNonNullable;
  this.graphQlListOfInt = Optional.fromNullable(graphQlListOfInt);
  this.graphQlListOfObjects = Optional.fromNullable(graphQlListOfObjects);
}
项目:jdk8u_jdk    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a check box.
 *
 * @param checkBox  a <code>JCheckBox</code> object
 */
public DefaultCellEditor(final JCheckBox checkBox) {
    editorComponent = checkBox;
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            boolean selected = false;
            if (value instanceof Boolean) {
                selected = ((Boolean)value).booleanValue();
            }
            else if (value instanceof String) {
                selected = value.equals("true");
            }
            checkBox.setSelected(selected);
        }

        public Object getCellEditorValue() {
            return Boolean.valueOf(checkBox.isSelected());
        }
    };
    checkBox.addActionListener(delegate);
    checkBox.setRequestFocusEnabled(false);
}
项目:lookaside_java-1.8.0-openjdk    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a check box.
 *
 * @param checkBox  a <code>JCheckBox</code> object
 */
public DefaultCellEditor(final JCheckBox checkBox) {
    editorComponent = checkBox;
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            boolean selected = false;
            if (value instanceof Boolean) {
                selected = ((Boolean)value).booleanValue();
            }
            else if (value instanceof String) {
                selected = value.equals("true");
            }
            checkBox.setSelected(selected);
        }

        public Object getCellEditorValue() {
            return Boolean.valueOf(checkBox.isSelected());
        }
    };
    checkBox.addActionListener(delegate);
    checkBox.setRequestFocusEnabled(false);
}
项目:incubator-netbeans    文件:AnnotationTypesNode.java   
/** General setter */
private void setProperty(String property, Object value) {
    if (property.equals(AnnotationTypes.PROP_BACKGROUND_DRAWING))
        AnnotationTypes.getTypes().setBackgroundDrawing((Boolean)value);
    if (property.equals(AnnotationTypes.PROP_BACKGROUND_GLYPH_ALPHA))
        AnnotationTypes.getTypes().setBackgroundGlyphAlpha(((Integer)value).intValue());
    if (property.equals(AnnotationTypes.PROP_COMBINE_GLYPHS))
        AnnotationTypes.getTypes().setCombineGlyphs((Boolean)value);
    if (property.equals(AnnotationTypes.PROP_GLYPHS_OVER_LINE_NUMBERS))
        AnnotationTypes.getTypes().setGlyphsOverLineNumbers((Boolean)value);
    if (property.equals(AnnotationTypes.PROP_SHOW_GLYPH_GUTTER))
        AnnotationTypes.getTypes().setShowGlyphGutter((Boolean)value);
}
项目:dataenum    文件:MultipleValues.java   
@Override
public int hashCode() {
  int result = 0;
  result = result * 31 + Integer.valueOf(param1).hashCode();
  result = result * 31 + Boolean.valueOf(param2).hashCode();
  return result;
}
项目:dataenum    文件:MultipleValues.java   
@Override
public int hashCode() {
  int result = 0;
  result = result * 31 + Integer.valueOf(param1).hashCode();
  result = result * 31 + Boolean.valueOf(param2).hashCode();
  return result;
}
项目:dataenum    文件:InPackage.java   
@Override
public int hashCode() {
  int result = 0;
  result = result * 31 + Integer.valueOf(param1).hashCode();
  result = result * 31 + Boolean.valueOf(param2).hashCode();
  return result;
}
项目:dataenum    文件:PrimitiveValue.java   
@Override
public int hashCode() {
  int result = 0;
  result = result * 31 + Integer.valueOf(param1).hashCode();
  result = result * 31 + Boolean.valueOf(param2).hashCode();
  result = result * 31 + Float.valueOf(param3).hashCode();
  result = result * 31 + Double.valueOf(param4).hashCode();
  return result;
}
项目:OpenJSharp    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a
 * combo box.
 *
 * @param comboBox  a <code>JComboBox</code> object
 */
public DefaultCellEditor(final JComboBox comboBox) {
    editorComponent = comboBox;
    comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            comboBox.setSelectedItem(value);
        }

        public Object getCellEditorValue() {
            return comboBox.getSelectedItem();
        }

        public boolean shouldSelectCell(EventObject anEvent) {
            if (anEvent instanceof MouseEvent) {
                MouseEvent e = (MouseEvent)anEvent;
                return e.getID() != MouseEvent.MOUSE_DRAGGED;
            }
            return true;
        }
        public boolean stopCellEditing() {
            if (comboBox.isEditable()) {
                // Commit edited value.
                comboBox.actionPerformed(new ActionEvent(
                                 DefaultCellEditor.this, 0, ""));
            }
            return super.stopCellEditing();
        }
    };
    comboBox.addActionListener(delegate);
}
项目:jdk8u-jdk    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a
 * combo box.
 *
 * @param comboBox  a <code>JComboBox</code> object
 */
public DefaultCellEditor(final JComboBox comboBox) {
    editorComponent = comboBox;
    comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            comboBox.setSelectedItem(value);
        }

        public Object getCellEditorValue() {
            return comboBox.getSelectedItem();
        }

        public boolean shouldSelectCell(EventObject anEvent) {
            if (anEvent instanceof MouseEvent) {
                MouseEvent e = (MouseEvent)anEvent;
                return e.getID() != MouseEvent.MOUSE_DRAGGED;
            }
            return true;
        }
        public boolean stopCellEditing() {
            if (comboBox.isEditable()) {
                // Commit edited value.
                comboBox.actionPerformed(new ActionEvent(
                                 DefaultCellEditor.this, 0, ""));
            }
            return super.stopCellEditing();
        }
    };
    comboBox.addActionListener(delegate);
}
项目:openjdk-jdk10    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a
 * combo box.
 *
 * @param comboBox  a <code>JComboBox</code> object
 */
public DefaultCellEditor(final JComboBox<?> comboBox) {
    editorComponent = comboBox;
    comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            comboBox.setSelectedItem(value);
        }

        public Object getCellEditorValue() {
            return comboBox.getSelectedItem();
        }

        public boolean shouldSelectCell(EventObject anEvent) {
            if (anEvent instanceof MouseEvent) {
                MouseEvent e = (MouseEvent)anEvent;
                return e.getID() != MouseEvent.MOUSE_DRAGGED;
            }
            return true;
        }
        public boolean stopCellEditing() {
            if (comboBox.isEditable()) {
                // Commit edited value.
                comboBox.actionPerformed(new ActionEvent(
                                 DefaultCellEditor.this, 0, ""));
            }
            return super.stopCellEditing();
        }
    };
    comboBox.addActionListener(delegate);
}
项目:WeatherStream    文件:GeneratedDatabaseHolder.java   
public GeneratedDatabaseHolder() {
  typeConverters.put(Boolean.class, new BooleanConverter());
  typeConverters.put(Character.class, new CharConverter());
  typeConverters.put(BigDecimal.class, new BigDecimalConverter());
  typeConverters.put(BigInteger.class, new BigIntegerConverter());
  typeConverters.put(Date.class, new SqlDateConverter());
  typeConverters.put(Time.class, new SqlDateConverter());
  typeConverters.put(Timestamp.class, new SqlDateConverter());
  typeConverters.put(Calendar.class, new CalendarConverter());
  typeConverters.put(GregorianCalendar.class, new CalendarConverter());
  typeConverters.put(java.util.Date.class, new DateConverter());
  typeConverters.put(UUID.class, new UUIDConverter());
  new WeatherStreamDBWeatherStreamDB_Database(this);
}
项目:openjdk9    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a
 * combo box.
 *
 * @param comboBox  a <code>JComboBox</code> object
 */
public DefaultCellEditor(final JComboBox<?> comboBox) {
    editorComponent = comboBox;
    comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            comboBox.setSelectedItem(value);
        }

        public Object getCellEditorValue() {
            return comboBox.getSelectedItem();
        }

        public boolean shouldSelectCell(EventObject anEvent) {
            if (anEvent instanceof MouseEvent) {
                MouseEvent e = (MouseEvent)anEvent;
                return e.getID() != MouseEvent.MOUSE_DRAGGED;
            }
            return true;
        }
        public boolean stopCellEditing() {
            if (comboBox.isEditable()) {
                // Commit edited value.
                comboBox.actionPerformed(new ActionEvent(
                                 DefaultCellEditor.this, 0, ""));
            }
            return super.stopCellEditing();
        }
    };
    comboBox.addActionListener(delegate);
}
项目:Agile_Android_Abstracts    文件:DatabaseController.java   
/**
 * Checking if the database is connected to the internet
 * @param
 * @return isConnected
 */
public static Boolean isOnline(){
    context = getContext();
    if (context==null){
        return false;
    }
    ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);

    NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
    boolean isConnected = activeNetwork != null &&
            activeNetwork.isAvailable() && activeNetwork.isConnected();
    return isConnected;
}
项目:ReactNativeSignatureExample    文件:RSSignatureCaptureMainView.java   
public void setShowNativeButtons(Boolean showNativeButtons) {
  this.showNativeButtons = showNativeButtons;
  if (showNativeButtons) {
    Log.d("Added Native Buttons", "Native Buttons:" + showNativeButtons);
    buttonsLayout.setVisibility(View.VISIBLE);
  } else {
    buttonsLayout.setVisibility(View.GONE);
  }
}
项目:ReactNativeSignatureExample    文件:RSSignatureCaptureViewManager.java   
@ReactProp(name = PROPS_SAVE_IMAGE_FILE)
public void setSaveImageFileInExtStorage(RSSignatureCaptureMainView view, @Nullable Boolean saveFile) {
    Log.d("setFileInExtStorage:", "" + saveFile);
    if(view!=null){
        view.setSaveFileInExtStorage(saveFile);
    }
}
项目:ReactNativeSignatureExample    文件:RSSignatureCaptureViewManager.java   
@ReactProp(name = PROPS_SHOW_NATIVE_BUTTONS)
public void setPropsShowNativeButtons(RSSignatureCaptureMainView view, @Nullable Boolean showNativeButtons) {
    Log.d("showNativeButtons:", "" + showNativeButtons);
    if(view!=null){
        view.setShowNativeButtons(showNativeButtons);
    }
}
项目:ReactNativeSignatureExample    文件:RSSignatureCaptureMainView.java   
public void setShowNativeButtons(Boolean showNativeButtons){
  this.showNativeButtons = showNativeButtons;
 /* if(showNativeButtons){
    Log.d("Added Native Buttons","Native Buttons:"+showNativeButtons);
    buttonsLayout.setVisibility(View.VISIBLE);
  }else{
    buttonsLayout.setVisibility(View.GONE);
  }*/

}
项目:ReactNativeSignatureExample    文件:RSSignatureCaptureViewManager.java   
@ReactProp(name = PROPS_SAVE_IMAGE_FILE)
public void setSaveImageFileInExtStorage(RSSignatureCaptureMainView view, @Nullable Boolean saveFile) {
    Log.d("setFileInExtStorage:", "" + saveFile);
    if(view!=null){
        view.setSaveFileInExtStorage(saveFile);
    }
}
项目:ReactNativeSignatureExample    文件:RSSignatureCaptureViewManager.java   
@ReactProp(name = PROPS_SHOW_NATIVE_BUTTONS)
public void setPropsShowNativeButtons(RSSignatureCaptureMainView view, @Nullable Boolean showNativeButtons) {
    Log.d("showNativeButtons:", "" + showNativeButtons);
    if(view!=null){
        view.setShowNativeButtons(showNativeButtons);
    }
}
项目:Java8CN    文件:DefaultCellEditor.java   
/**
 * Constructs a <code>DefaultCellEditor</code> object that uses a
 * combo box.
 *
 * @param comboBox  a <code>JComboBox</code> object
 */
public DefaultCellEditor(final JComboBox comboBox) {
    editorComponent = comboBox;
    comboBox.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
    delegate = new EditorDelegate() {
        public void setValue(Object value) {
            comboBox.setSelectedItem(value);
        }

        public Object getCellEditorValue() {
            return comboBox.getSelectedItem();
        }

        public boolean shouldSelectCell(EventObject anEvent) {
            if (anEvent instanceof MouseEvent) {
                MouseEvent e = (MouseEvent)anEvent;
                return e.getID() != MouseEvent.MOUSE_DRAGGED;
            }
            return true;
        }
        public boolean stopCellEditing() {
            if (comboBox.isEditable()) {
                // Commit edited value.
                comboBox.actionPerformed(new ActionEvent(
                                 DefaultCellEditor.this, 0, ""));
            }
            return super.stopCellEditing();
        }
    };
    comboBox.addActionListener(delegate);
}
项目:jenkins-artifactory-polling-plugin    文件:CheckoutTask.java   
/**
 * Constructor
 * @param artifactoryURL The url to artifactory. Guaranteed to end in a '/'
 * @param repo The artifactory repository to download from
 * @param groupID The groupID of the artifact
 * @param artifactID The artifactID of the artifact
 * @param version The version of the artifact
 * @param localDirectory The directory to put the files into
 * @param doDownload Whether a checkout should be done
 */
public CheckoutTask(String artifactoryURL, String repo, String groupID, String artifactID, 
    Artifact artifact, String localDirectory, Boolean doDownload)
{
    this.repo = repo;
    this.groupID = groupID;
    this.artifactID = artifactID;
    this.artifactoryURL = artifactoryURL;
    this.artifact = artifact;
    this.localDirectory = localDirectory;
    this.doDownload = doDownload;
}
项目:jenkins-artifactory-polling-plugin    文件:CheckoutTask.java   
/**
 * Function that does the heavy lifting of the checkout. First it gets the metadata about
 * an artifact which includes all the files that are included in that artifact. Then it 
 * proceeds to download each of those files.
 * @param workspace The file where the downloads will go to
 * @param channel The channel back to the job
 * @return True if successful, false otherwise
 * @throws IOException
 * @throws InterruptedException
 */
public Boolean invoke(File workspace, VirtualChannel channel) throws IOException, InterruptedException
{
    if (doDownload)
    {
        // Delete any artifacts of previous builds
        File checkoutDir = new File(workspace, localDirectory);
        checkoutDir.mkdirs();
        FileUtils.cleanDirectory(checkoutDir);   

        ArtifactoryAPI api = new ArtifactoryAPI(artifactoryURL);
        JSONArray json = api.getArtifactFiles(repo, groupID, artifactID, artifact.getVersion());

        String groupURLPart = groupID.replace('.', '/');
        for (int i = 0; i < json.size(); i++)
        {
            String uri = json.getString(i);
            LOGGER.log(FINE, "Found child URI: " + uri);
            String resourceURL = artifactoryURL + repo + '/' + groupURLPart + '/' + artifactID + '/' + artifact.getVersion() + '/' + uri;
            LOGGER.log(FINE, "Starting download of " + uri);
            FileUtils.copyURLToFile(new URL(resourceURL), new File(checkoutDir, uri));
            LOGGER.log(FINE, "Finished downloading: " + uri);
        }
    }

    return true;
}
项目:gsonpath    文件:ValidConstructorTest_GsonTypeAdapter.java   
@Override
public void write(JsonWriter out, ValidConstructorTest value) throws IOException {
    if (value == null) {
        out.nullValue();
        return;
    }

    // Begin
    out.beginObject();

    // Begin parent
    out.name("parent");
    out.beginObject();

    // Begin parentchild
    out.name("child");
    out.beginObject();
    String obj0 = value.getValue1();
    if (obj0 != null) {
        out.name("value1");
        out.value(obj0);
    }

    // End parentchild
    out.endObject();
    // End parent
    out.endObject();
    boolean obj1 = value.isBooleanTest1();
    out.name("isBooleanTest1");
    out.value(obj1);

    Boolean obj2 = value.isBooleanTest2();
    if (obj2 != null) {
        out.name("isBooleanTest2");
        out.value(obj2);
    }

    // End
    out.endObject();
}
项目:intellij-ce-playground    文件:NullableBoolean.java   
public static void main3(Boolean b) {
  if (b == Boolean.FALSE) {
    System.out.println();
  } else if (b == Boolean.TRUE) {
    System.out.println();
  }
}
项目:qicore_model    文件:qicorepractitionerAdapter.java   
public Boolean getActive()
{
   try
   {
      return adaptedClass.getActive();
   }
   catch (Exception e)
   {
      throw new RuntimeException("Error getting Active", e);
   }
}
项目:qicore_model    文件:qicoremedicationAdapter.java   
public Boolean getIsBrand()
{
   try
   {
      return adaptedClass.getIsBrand();
   }
   catch (Exception e)
   {
      throw new RuntimeException("Error getting IsBrand", e);
   }
}
项目:qicore_model    文件:qicoremedicationadministrationAdapter.java   
public Boolean getNotGiven()
{
   try
   {
      return adaptedClass.getNotGiven();
   }
   catch (Exception e)
   {
      throw new RuntimeException("Error getting WasNotGiven", e);
   }
}