List of usage examples for java.lang Boolean Boolean
@Deprecated(since = "9") public Boolean(String s)
From source file:gov.nih.nci.ncicb.cadsr.bulkloader.util.excel.ExcelUtility.java
public static Object getObject(HSSFSheet sheet, int row, short col) { HSSFRow hssfRow = getRow(sheet, row); if (hssfRow == null) { return null; }/* ww w. j a v a 2 s.c o m*/ HSSFCell cell = getRow(sheet, row).getCell(col); if (cell == null) { return null; } try { String val = cell.getStringCellValue(); if (val != null && val.equalsIgnoreCase("(null)")) { return null; } } catch (Exception t) { } int type = cell.getCellType(); switch (type) { case HSSFCell.CELL_TYPE_BLANK: return ""; case HSSFCell.CELL_TYPE_BOOLEAN: return new Boolean(cell.getBooleanCellValue()); case HSSFCell.CELL_TYPE_ERROR: return new Byte(cell.getErrorCellValue()); case HSSFCell.CELL_TYPE_FORMULA: return cell.getCellFormula(); case HSSFCell.CELL_TYPE_NUMERIC: return new Double(cell.getNumericCellValue()); case HSSFCell.CELL_TYPE_STRING: return cell.getStringCellValue(); default: return null; } }
From source file:com.sshtools.appframework.api.ui.SshToolsApplicationPanel.java
/** * Set an actions visible state//from w w w.j a v a 2 s . co m * * @param name * @param visible */ public void setActionVisible(String name, boolean visible) { actionsVisible.put(name, new Boolean(visible)); }
From source file:ar.com.fdvs.dj.domain.chart.builder.DJAreaChartBuilder.java
/** * Sets the legend visibility./*from w ww .j a v a 2 s. com*/ * * @param showLegend the legend visibility **/ public DJAreaChartBuilder setShowLegend(boolean showLegend) { this.chart.getOptions().setShowLegend(new Boolean(showLegend)); return this; }
From source file:course.quiz.member.GenMember.java
/** * Sets receiveEmail./*from w w w. jav a2s. c om*/ * * @param receiveEmail * receiveEmail */ public void setReceiveEmail(boolean receiveEmail) { setReceiveEmail(new Boolean(receiveEmail)); }
From source file:ar.com.fdvs.dj.domain.chart.builder.DJXYAreaChartBuilder.java
/** * Sets the legend visibility.//w w w .jav a 2 s .co m * * @param showLegend the legend visibility **/ public DJXYAreaChartBuilder setShowLegend(boolean showLegend) { this.chart.getOptions().setShowLegend(new Boolean(showLegend)); return this; }
From source file:ar.com.fdvs.dj.domain.chart.builder.DJBarChartBuilder.java
/** * Sets the legend visibility./*from w w w . j a v a2 s. co m*/ * * @param showLegend the legend visibility **/ public DJBarChartBuilder setShowLegend(boolean showLegend) { this.chart.getOptions().setShowLegend(new Boolean(showLegend)); return this; }
From source file:ar.com.fdvs.dj.domain.chart.builder.DJLineChartBuilder.java
/** * Sets the legend visibility.// www .jav a 2s. c om * * @param showLegend the legend visibility **/ public DJLineChartBuilder setShowLegend(boolean showLegend) { this.chart.getOptions().setShowLegend(new Boolean(showLegend)); return this; }
From source file:ar.com.fdvs.dj.domain.chart.builder.DJXYBarChartBuilder.java
/** * Sets the legend visibility./* w w w .ja v a 2s . c o m*/ * * @param showLegend the legend visibility **/ public DJXYBarChartBuilder setShowLegend(boolean showLegend) { this.chart.getOptions().setShowLegend(new Boolean(showLegend)); return this; }
From source file:ar.com.fdvs.dj.domain.chart.builder.DJXYLineChartBuilder.java
/** * Sets the legend visibility./* ww w . ja v a2 s. co m*/ * * @param showLegend the legend visibility **/ public DJXYLineChartBuilder setShowLegend(boolean showLegend) { this.chart.getOptions().setShowLegend(new Boolean(showLegend)); return this; }
From source file:com.sun.faces.taglib.html_basic.MessagesTag.java
protected void setProperties(UIComponent component) { super.setProperties(component); UIMessages messages = null;/*w w w . j av a 2 s .c om*/ try { messages = (UIMessages) component; } catch (ClassCastException cce) { throw new IllegalStateException("Component " + component.toString() + " not expected type. Expected: UIMessages. Perhaps you're missing a tag?"); } if (globalOnly != null) { if (isValueReference(globalOnly)) { ValueBinding vb = Util.getValueBinding(globalOnly); messages.setValueBinding("globalOnly", vb); } else { boolean _globalOnly = new Boolean(globalOnly).booleanValue(); messages.setGlobalOnly(_globalOnly); } } if (showDetail != null) { if (isValueReference(showDetail)) { ValueBinding vb = Util.getValueBinding(showDetail); messages.setValueBinding("showDetail", vb); } else { boolean _showDetail = new Boolean(showDetail).booleanValue(); messages.setShowDetail(_showDetail); } } if (showSummary != null) { if (isValueReference(showSummary)) { ValueBinding vb = Util.getValueBinding(showSummary); messages.setValueBinding("showSummary", vb); } else { boolean _showSummary = new Boolean(showSummary).booleanValue(); messages.setShowSummary(_showSummary); } } if (errorClass != null) { if (isValueReference(errorClass)) { ValueBinding vb = Util.getValueBinding(errorClass); messages.setValueBinding("errorClass", vb); } else { messages.getAttributes().put("errorClass", errorClass); } } if (errorStyle != null) { if (isValueReference(errorStyle)) { ValueBinding vb = Util.getValueBinding(errorStyle); messages.setValueBinding("errorStyle", vb); } else { messages.getAttributes().put("errorStyle", errorStyle); } } if (fatalClass != null) { if (isValueReference(fatalClass)) { ValueBinding vb = Util.getValueBinding(fatalClass); messages.setValueBinding("fatalClass", vb); } else { messages.getAttributes().put("fatalClass", fatalClass); } } if (fatalStyle != null) { if (isValueReference(fatalStyle)) { ValueBinding vb = Util.getValueBinding(fatalStyle); messages.setValueBinding("fatalStyle", vb); } else { messages.getAttributes().put("fatalStyle", fatalStyle); } } if (infoClass != null) { if (isValueReference(infoClass)) { ValueBinding vb = Util.getValueBinding(infoClass); messages.setValueBinding("infoClass", vb); } else { messages.getAttributes().put("infoClass", infoClass); } } if (infoStyle != null) { if (isValueReference(infoStyle)) { ValueBinding vb = Util.getValueBinding(infoStyle); messages.setValueBinding("infoStyle", vb); } else { messages.getAttributes().put("infoStyle", infoStyle); } } if (layout != null) { if (isValueReference(layout)) { ValueBinding vb = Util.getValueBinding(layout); messages.setValueBinding("layout", vb); } else { messages.getAttributes().put("layout", layout); } } if (style != null) { if (isValueReference(style)) { ValueBinding vb = Util.getValueBinding(style); messages.setValueBinding("style", vb); } else { messages.getAttributes().put("style", style); } } if (styleClass != null) { if (isValueReference(styleClass)) { ValueBinding vb = Util.getValueBinding(styleClass); messages.setValueBinding("styleClass", vb); } else { messages.getAttributes().put("styleClass", styleClass); } } if (title != null) { if (isValueReference(title)) { ValueBinding vb = Util.getValueBinding(title); messages.setValueBinding("title", vb); } else { messages.getAttributes().put("title", title); } } if (tooltip != null) { if (isValueReference(tooltip)) { ValueBinding vb = Util.getValueBinding(tooltip); messages.setValueBinding("tooltip", vb); } else { boolean _tooltip = new Boolean(tooltip).booleanValue(); messages.getAttributes().put("tooltip", _tooltip ? Boolean.TRUE : Boolean.FALSE); } } if (warnClass != null) { if (isValueReference(warnClass)) { ValueBinding vb = Util.getValueBinding(warnClass); messages.setValueBinding("warnClass", vb); } else { messages.getAttributes().put("warnClass", warnClass); } } if (warnStyle != null) { if (isValueReference(warnStyle)) { ValueBinding vb = Util.getValueBinding(warnStyle); messages.setValueBinding("warnStyle", vb); } else { messages.getAttributes().put("warnStyle", warnStyle); } } }