File |
Project |
Line |
org\primefaces\extensions\component\codemirror\CodeMirror.java |
PrimeFaces Extensions |
325 |
org\primefaces\extensions\component\remotecommand\RemoteCommand.java |
PrimeFaces Extensions |
127 |
getStateHelper().put(PropertyKeys.completeMethod, completeMethod);
}
public String getProcess() {
return (String) getStateHelper().eval(PropertyKeys.process, null);
}
public void setProcess(final String process) {
getStateHelper().put(PropertyKeys.process, process);
}
public String getOnstart() {
return (String) getStateHelper().eval(PropertyKeys.onstart, null);
}
public void setOnstart(final String onstart) {
getStateHelper().put(PropertyKeys.onstart, onstart);
}
public String getOncomplete() {
return (String) getStateHelper().eval(PropertyKeys.oncomplete, null);
}
public void setOncomplete(final String oncomplete) {
getStateHelper().put(PropertyKeys.oncomplete, oncomplete);
}
public String getOnerror() {
return (String) getStateHelper().eval(PropertyKeys.onerror, null);
}
public void setOnerror(final String onerror) {
getStateHelper().put(PropertyKeys.onerror, onerror);
}
public String getOnsuccess() {
return (String) getStateHelper().eval(PropertyKeys.onsuccess, null);
}
public void setOnsuccess(final String onsuccess) {
getStateHelper().put(PropertyKeys.onsuccess, onsuccess);
}
public boolean isGlobal() {
return (Boolean) getStateHelper().eval(PropertyKeys.global, true);
}
public void setGlobal(final boolean global) {
getStateHelper().put(PropertyKeys.global, global);
}
public boolean isAsync() {
return (Boolean) getStateHelper().eval(PropertyKeys.async, false);
}
public void setAsync(final boolean async) {
getStateHelper().put(PropertyKeys.async, async);
}
public boolean isEscape() { |
File |
Project |
Line |
org\primefaces\extensions\component\exporter\PDFExporter.java |
PrimeFaces Extensions |
423 |
org\primefaces\extensions\component\exporter\PDFExporter.java |
PrimeFaces Extensions |
464 |
protected void tableFacet(FacesContext context, PdfPTable pdfTable, DataTable table, int columnCount, String facetType) {
Map<String, UIComponent> map = table.getFacets();
UIComponent component = map.get(facetType);
if (component != null) {
String headerValue = null;
if (component instanceof HtmlCommandButton) {
headerValue = exportValue(context, component);
} else if (component instanceof HtmlCommandLink) {
headerValue = exportValue(context, component);
} else if (component instanceof UIPanel || component instanceof OutputPanel) {
StringBuilder header = new StringBuilder("");
for(UIComponent child:component.getChildren()) {
headerValue = exportValue(context, child);
header.append(headerValue);
}
PdfPCell cell = new PdfPCell(new Paragraph(header.toString(), this.facetFont));
if (facetBackground != null) {
cell.setBackgroundColor(facetBackground);
}
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
//addColumnAlignments(component,cell);
cell.setColspan(columnCount);
pdfTable.addCell(cell);
pdfTable.completeRow();
return;
} else {
headerValue = exportFacetValue(context, component);
}
PdfPCell cell = new PdfPCell(new Paragraph(headerValue, this.facetFont));
if (facetBackground != null) {
cell.setBackgroundColor(facetBackground);
}
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
//addColumnAlignments(component,cell);
cell.setColspan(columnCount);
pdfTable.addCell(cell);
pdfTable.completeRow();
}
}
protected void tableFacet(FacesContext context, PdfPTable pdfTable, SubTable table, int columnCount, String facetType) { |
File |
Project |
Line |
org\primefaces\extensions\component\exporter\PDFExporter.java |
PrimeFaces Extensions |
741 |
org\primefaces\extensions\component\exporter\PDFExporter.java |
PrimeFaces Extensions |
769 |
protected void addColumnFacets(DataTable table, PdfPTable pdfTable, ColumnType columnType) {
for (UIColumn col : table.getColumns()) {
if (col instanceof DynamicColumn) {
((DynamicColumn) col).applyStatelessModel();
}
PdfPCell cell = null;
if (col.isRendered() && col.isExportable()) {
if (col.getHeaderText() != null && columnType.name().equalsIgnoreCase("header")) {
cell = new PdfPCell(new Paragraph(col.getHeaderText(), this.facetFont));
if (facetBackground != null) {
cell.setBackgroundColor(facetBackground);
}
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
pdfTable.addCell(cell);
} else if (col.getFooterText() != null && columnType.name().equalsIgnoreCase("footer")) {
cell = new PdfPCell(new Paragraph(col.getFooterText(), this.facetFont));
if (facetBackground != null) {
cell.setBackgroundColor(facetBackground);
}
pdfTable.addCell(cell);
} else {
addColumnValue(pdfTable, col.getFacet(columnType.facet()), this.facetFont,columnType.name());
}
}
}
}
protected void addColumnFacets(SubTable table, PdfPTable pdfTable, ColumnType columnType) { |
File |
Project |
Line |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
383 |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
420 |
protected void tableFacet(FacesContext context, Sheet sheet, DataTable table, int columnCount, String facetType) {
Map<String, UIComponent> map = table.getFacets();
UIComponent component = map.get(facetType);
if (component != null) {
String headerValue;
if (component instanceof HtmlCommandButton) {
headerValue = exportValue(context, component);
} else if (component instanceof HtmlCommandLink) {
headerValue = exportValue(context, component);
} else if (component instanceof UIPanel) {
StringBuilder header = new StringBuilder("");
for(UIComponent child:component.getChildren()) {
headerValue = exportValue(context, child);
header.append(headerValue);
}
headerValue = header.toString();
}
else {
headerValue = exportFacetValue(context, component);
}
int sheetRowIndex = sheet.getLastRowNum() + 1;
Row row = sheet.createRow(sheetRowIndex);
Cell cell = row.createCell((short) 0);
cell.setCellValue(headerValue);
cell.setCellStyle(facetStyle);
sheet.addMergedRegion(new CellRangeAddress(
sheetRowIndex, //first row (0-based)
sheetRowIndex, //last row (0-based)
0, //first column (0-based)
columnCount - 1 //last column (0-based)
));
}
}
protected void tableFacet(FacesContext context, Sheet sheet, SubTable table, int columnCount, String facetType) { |
File |
Project |
Line |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
711 |
org\primefaces\extensions\component\exporter\PDFExporter.java |
PrimeFaces Extensions |
679 |
FacesContext context = null;
if (table.getRowIndex() == 0) {
for (UIComponent component : table.getChildren()) {
if (component instanceof RowExpansion) {
RowExpansion rowExpansion = (RowExpansion) component;
if (rowExpansion.getChildren() != null) {
if (rowExpansion.getChildren().get(0) instanceof DataTable) {
DataTable childTable = (DataTable) rowExpansion.getChildren().get(0);
childTable.setRowIndex(-1);
}
if (rowExpansion.getChildren().get(0) instanceof DataList) {
DataList childList = (DataList) rowExpansion.getChildren().get(0);
childList.setRowIndex(-1);
}
}
}
}
}
for (UIComponent component : table.getChildren()) {
if (component instanceof RowExpansion) {
RowExpansion rowExpansion = (RowExpansion) component;
if (rowExpansion.getChildren() != null) {
if(rowExpansion.getChildren().get(0) instanceof DataList) { |
File |
Project |
Line |
org\primefaces\extensions\component\layout\Layout.java |
PrimeFaces Extensions |
186 |
org\primefaces\extensions\component\layout\LayoutPane.java |
PrimeFaces Extensions |
155 |
getStateHelper().put(PropertyKeys.stateCookie, stateCookie);
}
public String getTogglerTipOpen() {
return (String) getStateHelper().eval(PropertyKeys.togglerTip_open, null);
}
public void setTogglerTipOpen(final String togglerTipOpen) {
getStateHelper().put(PropertyKeys.togglerTip_open, togglerTipOpen);
}
public String getTogglerTipClosed() {
return (String) getStateHelper().eval(PropertyKeys.togglerTip_closed, null);
}
public void setTogglerTipClosed(final String togglerTipClosed) {
getStateHelper().put(PropertyKeys.togglerTip_closed, togglerTipClosed);
}
public String getResizerTip() {
return (String) getStateHelper().eval(PropertyKeys.resizerTip, null);
}
public void setResizerTip(final String resizerTip) {
getStateHelper().put(PropertyKeys.resizerTip, resizerTip);
}
public String getSliderTip() {
return (String) getStateHelper().eval(PropertyKeys.sliderTip, null);
}
public void setSliderTip(final String sliderTip) {
getStateHelper().put(PropertyKeys.sliderTip, sliderTip);
}
public boolean isMaskPanesEarly() { |
File |
Project |
Line |
org\primefaces\extensions\component\imageareaselect\ImageAreaSelect.java |
PrimeFaces Extensions |
272 |
org\primefaces\extensions\component\imagerotateandresize\ImageRotateAndResize.java |
PrimeFaces Extensions |
103 |
}
public String getWidgetVar() {
return (String) getStateHelper().eval(PropertyKeys.widgetVar, null);
}
public void setWidgetVar(final String widgetVar) {
getStateHelper().put(PropertyKeys.widgetVar, widgetVar);
}
public String getFor() {
return (String) getStateHelper().eval(PropertyKeys.forValue, null);
}
public void setFor(final String forValue) {
getStateHelper().put(PropertyKeys.forValue, forValue);
}
public String resolveWidgetVar() {
return ComponentUtils.resolveWidgetVar(getFacesContext(), this);
}
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext context = FacesContext.getCurrentInstance();
final Map<String, String> params = context.getExternalContext().getRequestParameterMap();
final String clientId = getClientId(context);
if (isRequestSource(clientId, params)) {
final String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM); |
File |
Project |
Line |
org\primefaces\extensions\component\calculator\Calculator.java |
PrimeFaces Extensions |
144 |
org\primefaces\extensions\component\clipboard\Clipboard.java |
PrimeFaces Extensions |
124 |
}
/**
* {@inheritDoc}
*/
@Override
public void processDecodes(final FacesContext fc) {
if (isSelfRequest(fc)) {
decode(fc);
} else {
super.processDecodes(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processValidators(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processValidators(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processUpdates(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processUpdates(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext fc = FacesContext.getCurrentInstance();
if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) {
final Map<String, String> params = fc.getExternalContext().getRequestParameterMap();
final String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM);
final String clientId = this.getClientId(fc);
final AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event; |
File |
Project |
Line |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
688 |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
767 |
protected void exportCells(DataTable table, Sheet sheet) {
int sheetRowIndex = sheet.getLastRowNum() + 1;
Row row = sheet.createRow(sheetRowIndex);
facetStyleLeftAlign.setAlignment((short)CellStyle.ALIGN_LEFT);
facetStyleCenterAlign.setAlignment((short)CellStyle.ALIGN_CENTER);
facetStyleCenterAlign.setVerticalAlignment((short)CellStyle.VERTICAL_CENTER);
facetStyleCenterAlign.setWrapText(true);
facetStyleRightAlign.setAlignment((short)CellStyle.ALIGN_RIGHT);
cellStyleLeftAlign.setAlignment((short)CellStyle.ALIGN_LEFT);
cellStyleCenterAlign.setAlignment((short)CellStyle.ALIGN_CENTER);
cellStyleRightAlign.setAlignment((short)CellStyle.ALIGN_RIGHT);
for (UIColumn col : table.getColumns()) {
if (col instanceof DynamicColumn) {
((DynamicColumn) col).applyStatelessModel();
}
if (col.isRendered() && col.isExportable()) {
addColumnValue(row, col.getChildren(), "content");
}
} |
File |
Project |
Line |
org\primefaces\extensions\component\clipboard\Clipboard.java |
PrimeFaces Extensions |
123 |
org\primefaces\extensions\component\slideout\SlideOut.java |
PrimeFaces Extensions |
141 |
return ClipboardSuccessEvent.NAME;
}
/**
* {@inheritDoc}
*/
@Override
public void processDecodes(final FacesContext fc) {
if (isSelfRequest(fc)) {
decode(fc);
} else {
super.processDecodes(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processValidators(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processValidators(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processUpdates(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processUpdates(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext fc = FacesContext.getCurrentInstance();
if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) {
final Map<String, String> params = fc.getExternalContext().getRequestParameterMap();
final String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM);
final String clientId = this.getClientId(fc); |
File |
Project |
Line |
org\primefaces\extensions\component\calculator\Calculator.java |
PrimeFaces Extensions |
144 |
org\primefaces\extensions\component\slideout\SlideOut.java |
PrimeFaces Extensions |
142 |
}
/**
* {@inheritDoc}
*/
@Override
public void processDecodes(final FacesContext fc) {
if (isSelfRequest(fc)) {
decode(fc);
} else {
super.processDecodes(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processValidators(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processValidators(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processUpdates(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processUpdates(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext fc = FacesContext.getCurrentInstance();
if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) {
final Map<String, String> params = fc.getExternalContext().getRequestParameterMap();
final String eventName = params.get(Constants.RequestParams.PARTIAL_BEHAVIOR_EVENT_PARAM);
final String clientId = this.getClientId(fc); |
File |
Project |
Line |
org\primefaces\extensions\component\exporter\PDFExporter.java |
PrimeFaces Extensions |
519 |
org\primefaces\extensions\component\exporter\PDFExporter.java |
PrimeFaces Extensions |
568 |
if (facetType.equalsIgnoreCase("header")) {
value = column.getHeaderText();
} else
value = column.getFooterText();
int rowSpan = column.getRowspan();
int colSpan = column.getColspan();
PdfPCell cell = new PdfPCell(new Paragraph(value, this.facetFont));
if (facetBackground != null) {
cell.setBackgroundColor(facetBackground);
}
if (rowSpan > 1) {
cell.setVerticalAlignment(Element.ALIGN_CENTER);
cell.setRowspan(rowSpan);
}
if (colSpan > 1) {
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setColspan(colSpan);
}
// addColumnAlignments(component,cell);
if (facetType.equalsIgnoreCase("header")) {
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
}
pdfTable.addCell(cell);
}
}
} |
File |
Project |
Line |
org\primefaces\extensions\component\calculator\Calculator.java |
PrimeFaces Extensions |
143 |
org\primefaces\extensions\component\waypoint\Waypoint.java |
PrimeFaces Extensions |
121 |
return getDir().equalsIgnoreCase("rtl");
}
/**
* {@inheritDoc}
*/
@Override
public void processDecodes(final FacesContext fc) {
if (isSelfRequest(fc)) {
decode(fc);
} else {
super.processDecodes(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processValidators(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processValidators(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processUpdates(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processUpdates(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext fc = FacesContext.getCurrentInstance();
if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) { |
File |
Project |
Line |
org\primefaces\extensions\component\clipboard\Clipboard.java |
PrimeFaces Extensions |
124 |
org\primefaces\extensions\component\slideout\SlideOut.java |
PrimeFaces Extensions |
142 |
org\primefaces\extensions\component\waypoint\Waypoint.java |
PrimeFaces Extensions |
122 |
}
/**
* {@inheritDoc}
*/
@Override
public void processDecodes(final FacesContext fc) {
if (isSelfRequest(fc)) {
decode(fc);
} else {
super.processDecodes(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processValidators(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processValidators(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void processUpdates(final FacesContext fc) {
if (!isSelfRequest(fc)) {
super.processUpdates(fc);
}
}
/**
* {@inheritDoc}
*/
@Override
public void queueEvent(final FacesEvent event) {
final FacesContext fc = FacesContext.getCurrentInstance();
if (isSelfRequest(fc) && event instanceof AjaxBehaviorEvent) { |
File |
Project |
Line |
org\primefaces\extensions\component\remotecommand\RemoteCommand.java |
PrimeFaces Extensions |
247 |
org\primefaces\extensions\component\timer\Timer.java |
PrimeFaces Extensions |
280 |
getStateHelper().put(PropertyKeys.timeout, timeout);
}
public java.lang.String getPartialSubmitFilter() {
return (java.lang.String) getStateHelper().eval(PropertyKeys.partialSubmitFilter, null);
}
public void setPartialSubmitFilter(java.lang.String _partialSubmitFilter) {
getStateHelper().put(PropertyKeys.partialSubmitFilter, _partialSubmitFilter);
}
public java.lang.String getForm() {
return (java.lang.String) getStateHelper().eval(PropertyKeys.form, null);
}
public void setForm(java.lang.String _form) {
getStateHelper().put(PropertyKeys.form, _form);
} |
File |
Project |
Line |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
688 |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
767 |
org\primefaces\extensions\component\exporter\ExcelExporter.java |
PrimeFaces Extensions |
792 |
protected void exportCells(DataTable table, Sheet sheet) {
int sheetRowIndex = sheet.getLastRowNum() + 1;
Row row = sheet.createRow(sheetRowIndex);
facetStyleLeftAlign.setAlignment((short)CellStyle.ALIGN_LEFT);
facetStyleCenterAlign.setAlignment((short)CellStyle.ALIGN_CENTER);
facetStyleCenterAlign.setVerticalAlignment((short)CellStyle.VERTICAL_CENTER);
facetStyleCenterAlign.setWrapText(true);
facetStyleRightAlign.setAlignment((short)CellStyle.ALIGN_RIGHT);
cellStyleLeftAlign.setAlignment((short)CellStyle.ALIGN_LEFT);
cellStyleCenterAlign.setAlignment((short)CellStyle.ALIGN_CENTER);
cellStyleRightAlign.setAlignment((short)CellStyle.ALIGN_RIGHT);
for (UIColumn col : table.getColumns()) { |
File |
Project |
Line |
org\primefaces\extensions\component\calculator\Calculator.java |
PrimeFaces Extensions |
188 |
org\primefaces\extensions\component\slideout\SlideOut.java |
PrimeFaces Extensions |
185 |
final String clientId = this.getClientId(fc);
final AjaxBehaviorEvent behaviorEvent = (AjaxBehaviorEvent) event;
if (OpenEvent.NAME.equals(eventName)) {
final OpenEvent openEvent = new OpenEvent(this, behaviorEvent.getBehavior());
openEvent.setPhaseId(event.getPhaseId());
super.queueEvent(openEvent);
return;
} else if (CloseEvent.NAME.equals(eventName)) {
final CloseEvent closeEvent = new CloseEvent(this, behaviorEvent.getBehavior());
closeEvent.setPhaseId(event.getPhaseId());
super.queueEvent(closeEvent);
return;
} else if (ButtonEvent.NAME.equals(eventName)) { |