List of usage examples for java.lang SecurityException printStackTrace
public void printStackTrace()
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIOutput outputText(Object... args) { UIOutput outputText = new HtmlOutputText(); System.out.print("outputText"); incrementIndent();/*from w ww . j av a 2s . co m*/ System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) outputText).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIOutput) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (outputText).getChildren().add((UIComponent) arg); } else { ((outputText).getFacets()).put((String) ((UIOutput) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (outputText.getClass().getDeclaredMethod("setConverter", outputText.getClass()) != null) { outputText.getClass().getDeclaredMethod("setConverter", outputText.getClass()) .invoke(outputText, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (outputText.getClass().getDeclaredMethod("addValidator", outputText.getClass()) != null) { outputText.getClass().getDeclaredMethod("addValidator", outputText.getClass()) .invoke(outputText, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_outputText\n"); return outputText; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIOutput outputLabel(Object... args) { UIOutput outputLabel = new HtmlOutputLabel(); System.out.print("outputLabel"); incrementIndent();//ww w.j a v a 2 s . c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) outputLabel).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIOutput) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (outputLabel).getChildren().add((UIComponent) arg); } else { ((outputLabel).getFacets()).put((String) ((UIOutput) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (outputLabel.getClass().getDeclaredMethod("setConverter", outputLabel.getClass()) != null) { outputLabel.getClass().getDeclaredMethod("setConverter", outputLabel.getClass()) .invoke(outputLabel, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (outputLabel.getClass().getDeclaredMethod("addValidator", outputLabel.getClass()) != null) { outputLabel.getClass().getDeclaredMethod("addValidator", outputLabel.getClass()) .invoke(outputLabel, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_outputLabel\n"); return outputLabel; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIGraphic grapicImage(Object... args) { UIGraphic grapicImage = new HtmlGraphicImage(); System.out.print("grapicImage"); incrementIndent();/*from w w w . ja va 2 s. co m*/ System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) grapicImage).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIGraphic) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (grapicImage).getChildren().add((UIComponent) arg); } else { ((grapicImage).getFacets()).put((String) ((UIGraphic) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (grapicImage.getClass().getDeclaredMethod("setConverter", grapicImage.getClass()) != null) { grapicImage.getClass().getDeclaredMethod("setConverter", grapicImage.getClass()) .invoke(grapicImage, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (grapicImage.getClass().getDeclaredMethod("addValidator", grapicImage.getClass()) != null) { grapicImage.getClass().getDeclaredMethod("addValidator", grapicImage.getClass()) .invoke(grapicImage, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_grapicImage\n"); return grapicImage; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UICommand commandLink(Object... args) { UICommand commandLink = new HtmlCommandLink(); System.out.print("commandLink"); incrementIndent();//from ww w.j a va2 s .com System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) commandLink).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UICommand) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (commandLink).getChildren().add((UIComponent) arg); } else { ((commandLink).getFacets()).put((String) ((UICommand) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (commandLink.getClass().getDeclaredMethod("setConverter", commandLink.getClass()) != null) { commandLink.getClass().getDeclaredMethod("setConverter", commandLink.getClass()) .invoke(commandLink, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (commandLink.getClass().getDeclaredMethod("addValidator", commandLink.getClass()) != null) { commandLink.getClass().getDeclaredMethod("addValidator", commandLink.getClass()) .invoke(commandLink, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_commandLink\n"); return commandLink; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIOutput outputLink(Object... args) { UIOutput outputLink = new HtmlOutputLink(); System.out.print("outputLink"); incrementIndent();//from www.ja va 2 s.co m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) outputLink).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIOutput) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (outputLink).getChildren().add((UIComponent) arg); } else { ((outputLink).getFacets()).put((String) ((UIOutput) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (outputLink.getClass().getDeclaredMethod("setConverter", outputLink.getClass()) != null) { outputLink.getClass().getDeclaredMethod("setConverter", outputLink.getClass()) .invoke(outputLink, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (outputLink.getClass().getDeclaredMethod("addValidator", outputLink.getClass()) != null) { outputLink.getClass().getDeclaredMethod("addValidator", outputLink.getClass()) .invoke(outputLink, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_outputLink\n"); return outputLink; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIMessage message(Object... args) { UIMessage message = new HtmlMessage(); System.out.print("message"); incrementIndent();//from w w w . j av a 2 s. co m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) message).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIMessage) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (message).getChildren().add((UIComponent) arg); } else { ((message).getFacets()).put((String) ((UIMessage) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (message.getClass().getDeclaredMethod("setConverter", message.getClass()) != null) { message.getClass().getDeclaredMethod("setConverter", message.getClass()).invoke(message, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (message.getClass().getDeclaredMethod("addValidator", message.getClass()) != null) { message.getClass().getDeclaredMethod("addValidator", message.getClass()).invoke(message, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_message\n"); return message; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIMessages messages(Object... args) { UIMessages messages = new HtmlMessages(); System.out.print("messages"); incrementIndent();/*from www . j a v a2 s . co m*/ System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) messages).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIMessages) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (messages).getChildren().add((UIComponent) arg); } else { ((messages).getFacets()).put((String) ((UIMessages) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (messages.getClass().getDeclaredMethod("setConverter", messages.getClass()) != null) { messages.getClass().getDeclaredMethod("setConverter", messages.getClass()).invoke(messages, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (messages.getClass().getDeclaredMethod("addValidator", messages.getClass()) != null) { messages.getClass().getDeclaredMethod("addValidator", messages.getClass()).invoke(messages, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_messages\n"); return messages; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIPanel panelGrid(Object... args) { UIPanel panelGrid = new HtmlPanelGrid(); System.out.print("panelGrid"); incrementIndent();//from w w w .j a v a 2s .c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) panelGrid).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIPanel) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (panelGrid).getChildren().add((UIComponent) arg); } else { ((panelGrid).getFacets()).put((String) ((UIPanel) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (panelGrid.getClass().getDeclaredMethod("setConverter", panelGrid.getClass()) != null) { panelGrid.getClass().getDeclaredMethod("setConverter", panelGrid.getClass()) .invoke(panelGrid, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (panelGrid.getClass().getDeclaredMethod("addValidator", panelGrid.getClass()) != null) { panelGrid.getClass().getDeclaredMethod("addValidator", panelGrid.getClass()) .invoke(panelGrid, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_panelGrid\n"); return panelGrid; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIData dataTable(Object... args) { UIData dataTable = new HtmlDataTable(); System.out.print("dataTable"); incrementIndent();//w ww . j ava 2s. c om System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) dataTable).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIData) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (dataTable).getChildren().add((UIComponent) arg); } else { ((dataTable).getFacets()).put((String) ((UIData) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (dataTable.getClass().getDeclaredMethod("setConverter", dataTable.getClass()) != null) { dataTable.getClass().getDeclaredMethod("setConverter", dataTable.getClass()) .invoke(dataTable, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (dataTable.getClass().getDeclaredMethod("addValidator", dataTable.getClass()) != null) { dataTable.getClass().getDeclaredMethod("addValidator", dataTable.getClass()) .invoke(dataTable, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_dataTable\n"); return dataTable; }
From source file:org.jbuilt.componentTree.jsf.AbstractJsfComponentTreeBuilder.java
@SuppressWarnings("unchecked") public UIColumn column(Object... args) { UIColumn column = new HtmlColumn(); System.out.print("column"); incrementIndent();// ww w .j a va 2 s.c o m System.out.println(" "); for (Object arg : args) { if (arg instanceof ComponentAttribute) { ((UIComponent) column).getAttributes().put(((ComponentAttribute<String, Object>) arg).getKey(), ((ComponentAttribute<String, Object>) arg).getValue()); } else if (arg instanceof UIComponent) { if (((UIColumn) arg).getFacet((String) ((UIComponent) arg).getAttributes().get("name")) == null) { (column).getChildren().add((UIComponent) arg); } else { ((column).getFacets()).put((String) ((UIColumn) arg).getAttributes().get("name"), (UIComponent) arg); } } else if (arg instanceof Converter) { try { if (column.getClass().getDeclaredMethod("setConverter", column.getClass()) != null) { column.getClass().getDeclaredMethod("setConverter", column.getClass()).invoke(column, (Converter) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } else if (arg instanceof Validator) { try { if (column.getClass().getDeclaredMethod("addValidator", column.getClass()) != null) { column.getClass().getDeclaredMethod("addValidator", column.getClass()).invoke(column, (Validator) arg); } } catch (SecurityException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } decrementIndent(); System.out.print("end_column\n"); return column; }