parent
3a860d06b7
commit
7352b6809b
@ -0,0 +1,7 @@
|
||||
<dispatcherinfo>
|
||||
|
||||
<managedpackage name="de.examples.nanoleaf"/>
|
||||
|
||||
|
||||
</dispatcherinfo>
|
||||
|
||||
@ -0,0 +1,63 @@
|
||||
package de.examples.nanoleaf;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.eclnt.editor.annotations.CCGenClass;
|
||||
import org.eclnt.jsfserver.pagebean.PageBean;
|
||||
|
||||
@CCGenClass (expressionBase="#{d.WandLayout17PBean}")
|
||||
|
||||
public class WandLayout17PBean
|
||||
extends PageBean
|
||||
implements Serializable
|
||||
{
|
||||
String m_prozentSatz = "14%";
|
||||
public String getProzentSatz() { return m_prozentSatz; }
|
||||
public void setProzentSatz(String value) { this.m_prozentSatz = value; }
|
||||
|
||||
String m_paneLine = "left:1;right:1;top:1;bottom:1;color:#4472c4";
|
||||
public String getPaneLine() { return m_paneLine; }
|
||||
public void setPaneLine(String value) { this.m_paneLine = value; }
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// inner classes
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/* Listener to the user of the page bean. */
|
||||
public interface IListener extends Serializable
|
||||
{
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// members
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
private IListener m_listener;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// constructors & initialization
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public WandLayout17PBean() {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public String getPageName() { return "/exaples/nanoleaf/wandlayout17p.xml"; }
|
||||
public String getRootExpressionUsedInPage() { return "#{d.WandLayout17PBean}"; }
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// public usage
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/* Initialization of the bean. Add any parameter that is required within your scenario. */
|
||||
public void prepare(IListener listener)
|
||||
{
|
||||
m_listener = listener;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// private usage
|
||||
// ------------------------------------------------------------------------
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
<dispatcherinfo>
|
||||
|
||||
<managedpackage name="de.games.nanoleaf.lightsswitch"/>
|
||||
|
||||
<managedpackage name="de.games.nanoleaf.tictactoe"/>
|
||||
|
||||
</dispatcherinfo>
|
||||
|
||||
@ -0,0 +1,417 @@
|
||||
package de.games.nanoleaf.lightsswitch;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
import org.eclnt.editor.annotations.CCGenClass;
|
||||
import org.eclnt.jsfserver.base.faces.event.ActionEvent;
|
||||
import org.eclnt.jsfserver.pagebean.PageBean;
|
||||
|
||||
import de.tools.ReflectClass;
|
||||
|
||||
|
||||
|
||||
@CCGenClass (expressionBase="#{d.LightsOnOffBean}")
|
||||
|
||||
public class LightsOnOffBean
|
||||
extends PageBean
|
||||
implements Serializable
|
||||
{
|
||||
|
||||
private Boolean[][] statusArray;
|
||||
boolean m_enabledButton1;
|
||||
public boolean getEnabledButton1() { return m_enabledButton1; }
|
||||
public void setEnabledButton1(boolean value) { this.m_enabledButton1 = value; }
|
||||
|
||||
boolean m_enabledButton2;
|
||||
public boolean getEnabledButton2() { return m_enabledButton2; }
|
||||
public void setEnabledButton2(boolean value) { this.m_enabledButton2 = value; }
|
||||
|
||||
boolean m_enabledButton3;
|
||||
public boolean getEnabledButton3() { return m_enabledButton3; }
|
||||
public void setEnabledButton3(boolean value) { this.m_enabledButton3 = value; }
|
||||
|
||||
boolean m_enabledButton4;
|
||||
public boolean getEnabledButton4() { return m_enabledButton4; }
|
||||
public void setEnabledButton4(boolean value) { this.m_enabledButton4 = value; }
|
||||
|
||||
boolean m_enabledButton5;
|
||||
public boolean getEnabledButton5() { return m_enabledButton5; }
|
||||
public void setEnabledButton5(boolean value) { this.m_enabledButton5 = value; }
|
||||
|
||||
boolean m_enabledButton6;
|
||||
public boolean getEnabledButton6() { return m_enabledButton6; }
|
||||
public void setEnabledButton6(boolean value) { this.m_enabledButton6 = value; }
|
||||
|
||||
boolean m_enabledButton7;
|
||||
public boolean getEnabledButton7() { return m_enabledButton7; }
|
||||
public void setEnabledButton7(boolean value) { this.m_enabledButton7 = value; }
|
||||
|
||||
boolean m_enabledButton8;
|
||||
public boolean getEnabledButton8() { return m_enabledButton8; }
|
||||
public void setEnabledButton8(boolean value) { this.m_enabledButton8 = value; }
|
||||
|
||||
boolean m_enabledButton9;
|
||||
public boolean getEnabledButton9() { return m_enabledButton9; }
|
||||
public void setEnabledButton9(boolean value) { this.m_enabledButton9 = value; }
|
||||
|
||||
int m_countSteps = 0;
|
||||
public int getCountSteps() { return m_countSteps; }
|
||||
public void setCountSteps(int value) { this.m_countSteps = value; }
|
||||
|
||||
String m_resultText;
|
||||
public String getResultText() { return m_resultText; }
|
||||
public void setResultText(String value) { this.m_resultText = value; }
|
||||
|
||||
public void onReset(ActionEvent event) {
|
||||
statusArray = new Boolean[3][3];
|
||||
nextButtons = new ArrayList<String>();
|
||||
|
||||
|
||||
enabledAllButtons(true);
|
||||
random = null;
|
||||
m_countSteps = 0;
|
||||
m_colorButton1 = null;
|
||||
m_colorButton2= null;
|
||||
m_colorButton3 = null;
|
||||
m_colorButton4 = null;
|
||||
m_colorButton5 = null;
|
||||
m_colorButton6 = null;
|
||||
m_colorButton7 = null;
|
||||
m_colorButton8 = null;
|
||||
m_colorButton9 = null;
|
||||
|
||||
int counter = 0;
|
||||
for (int r = 0; r < statusArray.length; r++) {
|
||||
for (int s = 0; s < statusArray[r].length; s++) {
|
||||
counter++;
|
||||
|
||||
if (getRandomBoolean()) {
|
||||
getReflectClass().setMethod("setColorButton" + counter, getLightOn());
|
||||
statusArray[r][s] = true;
|
||||
} else {
|
||||
statusArray[r][s] = false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static String m_lightOn = "#66FF00";
|
||||
public static String getLightOn() { return m_lightOn; }
|
||||
|
||||
private Random random;
|
||||
|
||||
public boolean getRandomBoolean() {
|
||||
if (random == null) {
|
||||
random = new Random();
|
||||
}
|
||||
return random.nextBoolean();
|
||||
}
|
||||
|
||||
String m_colorButton1;
|
||||
public String getColorButton1() { return m_colorButton1; }
|
||||
public void setColorButton1(String value) { this.m_colorButton1 = value; }
|
||||
|
||||
String m_colorButton2;
|
||||
public String getColorButton2() { return m_colorButton2; }
|
||||
public void setColorButton2(String value) { this.m_colorButton2 = value; }
|
||||
|
||||
String m_colorButton3;
|
||||
public String getColorButton3() { return m_colorButton3; }
|
||||
public void setColorButton3(String value) { this.m_colorButton3 = value; }
|
||||
|
||||
String m_colorButton4;
|
||||
public String getColorButton4() { return m_colorButton4; }
|
||||
public void setColorButton4(String value) { this.m_colorButton4 = value; }
|
||||
|
||||
String m_colorButton5;
|
||||
public String getColorButton5() { return m_colorButton5; }
|
||||
public void setColorButton5(String value) { this.m_colorButton5 = value; }
|
||||
|
||||
String m_colorButton6;
|
||||
public String getColorButton6() { return m_colorButton6; }
|
||||
public void setColorButton6(String value) { this.m_colorButton6 = value; }
|
||||
|
||||
String m_colorButton7;
|
||||
public String getColorButton7() { return m_colorButton7; }
|
||||
public void setColorButton7(String value) { this.m_colorButton7 = value; }
|
||||
|
||||
String m_colorButton8;
|
||||
public String getColorButton8() { return m_colorButton8; }
|
||||
public void setColorButton8(String value) { this.m_colorButton8 = value; }
|
||||
|
||||
String m_colorButton9;
|
||||
public String getColorButton9() { return m_colorButton9; }
|
||||
public void setColorButton9(String value) { this.m_colorButton9 = value; }
|
||||
|
||||
|
||||
private void stepper() {
|
||||
m_countSteps++;
|
||||
}
|
||||
|
||||
private void enabledAllButtons(boolean enabled) {
|
||||
for (int i = 1; i <= 9; i++) {
|
||||
getReflectClass().setMethod("setEnabledButton" + i, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void resultTextSetter() {
|
||||
|
||||
if (checkFinish()) {
|
||||
m_resultText = "Du hast mit " + getCountSteps() + " Schritten GEWONNEN. :-)";
|
||||
enabledAllButtons(false);
|
||||
|
||||
} else {
|
||||
m_resultText = "Du hast bis jetzt " + getCountSteps() + " Schritte benötigt.";
|
||||
}
|
||||
}
|
||||
|
||||
private boolean checkFinish() {
|
||||
boolean finish = true;
|
||||
boolean onOrOff = false;
|
||||
boolean buttonStatus = false;
|
||||
|
||||
for (int r = 0; r < statusArray.length; r++) {
|
||||
for (int s = 0; s < statusArray[r].length; s++) {
|
||||
if (r == 0 && s == 0) {
|
||||
onOrOff = statusArray[r][s];
|
||||
}
|
||||
buttonStatus = statusArray[r][s];
|
||||
|
||||
if (onOrOff != buttonStatus) {
|
||||
finish = false;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
if (finish == false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return finish;
|
||||
}
|
||||
|
||||
private void changeButtons() {
|
||||
int r = 0;
|
||||
int s = 0;
|
||||
Boolean status;
|
||||
int button = 0;
|
||||
for (String buttonNext: nextButtons) {
|
||||
r = Integer.parseInt(buttonNext.substring(0, 1));
|
||||
s = Integer.parseInt(buttonNext.substring(1));
|
||||
button = arrayButtonMap.get(buttonNext);
|
||||
|
||||
|
||||
|
||||
status = statusArray[r][s];
|
||||
|
||||
//System.out.println(button + " - " + buttonNext + " - " + status);
|
||||
if (status.booleanValue() == true) {
|
||||
getReflectClass().setMethod("setColorButton" + button, "");
|
||||
statusArray[r][s] = false;
|
||||
} else {
|
||||
getReflectClass().setMethod("setColorButton" + button, getLightOn());
|
||||
statusArray[r][s] = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
nextButtons.clear();
|
||||
}
|
||||
|
||||
|
||||
List<String> nextButtons;
|
||||
|
||||
public void onButton1(ActionEvent event) {
|
||||
nextButtons.add("00");
|
||||
nextButtons.add("01");
|
||||
nextButtons.add("10");
|
||||
|
||||
changeButtons();
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton2(ActionEvent event) {
|
||||
nextButtons.add("01");
|
||||
nextButtons.add("00");
|
||||
nextButtons.add("02");
|
||||
nextButtons.add("11");
|
||||
|
||||
changeButtons();
|
||||
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton3(ActionEvent event) {
|
||||
nextButtons.add("02");
|
||||
nextButtons.add("01");
|
||||
nextButtons.add("12");
|
||||
|
||||
changeButtons();
|
||||
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton4(ActionEvent event) {
|
||||
nextButtons.add("10");
|
||||
nextButtons.add("00");
|
||||
nextButtons.add("11");
|
||||
nextButtons.add("20");
|
||||
|
||||
changeButtons();
|
||||
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton5(ActionEvent event) {
|
||||
nextButtons.add("11");
|
||||
nextButtons.add("01");
|
||||
nextButtons.add("10");
|
||||
nextButtons.add("12");
|
||||
nextButtons.add("21");
|
||||
|
||||
changeButtons();
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton6(ActionEvent event) {
|
||||
nextButtons.add("12");
|
||||
nextButtons.add("02");
|
||||
nextButtons.add("11");
|
||||
nextButtons.add("22");
|
||||
|
||||
changeButtons();
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton7(ActionEvent event) {
|
||||
nextButtons.add("20");
|
||||
nextButtons.add("10");
|
||||
nextButtons.add("21");
|
||||
|
||||
changeButtons();
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton8(ActionEvent event) {
|
||||
nextButtons.add("21");
|
||||
nextButtons.add("11");
|
||||
nextButtons.add("20");
|
||||
nextButtons.add("22");
|
||||
|
||||
changeButtons();
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
public void onButton9(ActionEvent event) {
|
||||
nextButtons.add("22");
|
||||
nextButtons.add("12");
|
||||
nextButtons.add("21");
|
||||
|
||||
changeButtons();
|
||||
stepper();
|
||||
|
||||
resultTextSetter();
|
||||
}
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// inner classes
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/* Listener to the user of the page bean. */
|
||||
public interface IListener {
|
||||
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// members
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
private IListener m_listener;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// constructors & initialization
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
ReflectClass m_reflectClass;
|
||||
public ReflectClass getReflectClass() { return m_reflectClass; }
|
||||
|
||||
Map<String, Integer> arrayButtonMap = null;
|
||||
|
||||
|
||||
public LightsOnOffBean() {
|
||||
m_reflectClass = new ReflectClass(this);
|
||||
onReset(null);
|
||||
initArrayButtonMap();
|
||||
|
||||
checkSession();
|
||||
}
|
||||
|
||||
private void checkSession() {
|
||||
//System.out.println("ClientIP: " + SessionUtil.getClientIP());
|
||||
|
||||
//CLog.L.log(CLog.LL_INF, (new StringBuilder(">>>>> ClientIP: " + SessionUtil.getClientIP()).append(" <<<<<").toString()));
|
||||
}
|
||||
private void initArrayButtonMap() {
|
||||
arrayButtonMap = new HashMap<String, Integer>();
|
||||
|
||||
arrayButtonMap.put("00", 1);
|
||||
arrayButtonMap.put("01", 2);
|
||||
arrayButtonMap.put("02", 3);
|
||||
arrayButtonMap.put("10", 4);
|
||||
arrayButtonMap.put("11", 5);
|
||||
arrayButtonMap.put("12", 6);
|
||||
arrayButtonMap.put("20", 7);
|
||||
arrayButtonMap.put("21", 8);
|
||||
arrayButtonMap.put("22", 9);
|
||||
|
||||
|
||||
}
|
||||
@Override
|
||||
public String getPageName() { return "/games/nanoleaf/lightswitch/lightsOnOff.jsp"; }
|
||||
@Override
|
||||
public String getRootExpressionUsedInPage() { return "#{d.LightsOnOffBean}"; }
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// public usage
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/* Initialization of the bean. Add any parameter that is required within your scenario. */
|
||||
public void prepare(IListener listener)
|
||||
{
|
||||
m_listener = listener;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// private usage
|
||||
// ------------------------------------------------------------------------
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package de.games.nanoleaf.tictactoe;
|
||||
|
||||
import java.io.Serializable;
|
||||
import org.eclnt.editor.annotations.CCGenClass;
|
||||
import org.eclnt.jsfserver.pagebean.PageBean;
|
||||
|
||||
import org.eclnt.jsfserver.base.faces.event.ActionEvent;
|
||||
|
||||
@CCGenClass (expressionBase="#{d.TicTacToeBean}")
|
||||
|
||||
public class TicTacToeBean
|
||||
extends PageBean
|
||||
implements Serializable
|
||||
{
|
||||
// ------------------------------------------------------------------------
|
||||
// inner classes
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/* Listener to the user of the page bean. */
|
||||
public interface IListener extends Serializable
|
||||
{
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// members
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
private IListener m_listener;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// constructors & initialization
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
public TicTacToeBean()
|
||||
{
|
||||
}
|
||||
|
||||
public String getPageName() { return "/games/nanoleaf/tictactoe/tictactoe.xml"; }
|
||||
public String getRootExpressionUsedInPage() { return "#{d.TicTacToeBean}"; }
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// public usage
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
/* Initialization of the bean. Add any parameter that is required within your scenario. */
|
||||
public void prepare(IListener listener)
|
||||
{
|
||||
m_listener = listener;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// private usage
|
||||
// ------------------------------------------------------------------------
|
||||
}
|
||||
@ -0,0 +1,248 @@
|
||||
package de.tools;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author VogelT
|
||||
*
|
||||
*/
|
||||
|
||||
public class ReflectClass {
|
||||
|
||||
private final Object m_workObject;
|
||||
public Object getWorkObject() { return m_workObject; }
|
||||
|
||||
/**
|
||||
*
|
||||
* @param method
|
||||
* @param arg
|
||||
*/
|
||||
public void setMethod(String method, Object arg) {
|
||||
setMethod(method, new Object[]{arg});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param method
|
||||
* @param arg
|
||||
*/
|
||||
public void setMethod(String method, Object[] arg) {
|
||||
try {
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
Class[] parameterTypes = getParameterTypes(method);
|
||||
Method setter = getWorkObject().getClass().getMethod(method, parameterTypes);
|
||||
|
||||
setter.invoke(getWorkObject(), arg);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public void set(String fieldname, Object value) {
|
||||
try {
|
||||
Field field = getWorkObject().getClass().getDeclaredField(fieldname);
|
||||
|
||||
if (field == null) {
|
||||
field = getWorkObject().getClass().getField(fieldname);
|
||||
|
||||
}
|
||||
field.setAccessible(true);
|
||||
field.set(getWorkObject(), value);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public Object get(String fieldname) {
|
||||
Object result = null;
|
||||
//System.out.println("Fieldname: " + fieldname);
|
||||
|
||||
if (getUpperSearch()) {
|
||||
fieldname = fieldname.trim().toUpperCase();
|
||||
} else {
|
||||
fieldname = fieldname.trim().toLowerCase();
|
||||
}
|
||||
|
||||
try {
|
||||
if(fieldname.startsWith("serial")) {
|
||||
return result;
|
||||
}
|
||||
|
||||
Field field = getWorkObject().getClass().getDeclaredField(fieldname);
|
||||
|
||||
//String clazzType = field.getType().getName();
|
||||
if (field == null) {
|
||||
field = getWorkObject().getClass().getField(fieldname);
|
||||
}
|
||||
|
||||
if (field != null) {
|
||||
field.setAccessible(true);
|
||||
result = field.get(getWorkObject());
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param method
|
||||
* @return
|
||||
*/
|
||||
// public Object getMethod(String method) {
|
||||
// Object result = null;
|
||||
//
|
||||
// try {
|
||||
//
|
||||
//
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// return result;
|
||||
// }
|
||||
|
||||
/**
|
||||
*
|
||||
* @param methodSearch
|
||||
* @return
|
||||
*/
|
||||
public Class<?> getReturnType(String methodSearch) {
|
||||
Class<?> returnTypes = null;
|
||||
|
||||
for ( Method method : getWorkObject().getClass().getMethods() ) {
|
||||
//String returnString = method.getReturnType().getName();
|
||||
|
||||
if (method.getName().equals(methodSearch)) {
|
||||
returnTypes = method.getReturnType();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return returnTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param methodSearch
|
||||
* @return
|
||||
*/
|
||||
public Class<?>[] getParameterTypes(String methodSearch) {
|
||||
Class<?>[] parameterTypes = null;
|
||||
|
||||
for ( Method method : getWorkObject().getClass().getMethods() ) {
|
||||
//String returnString = method.getReturnType().getName();
|
||||
|
||||
if (method.getName().equals(methodSearch)) {
|
||||
parameterTypes = method.getParameterTypes();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return parameterTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* showMethods
|
||||
*/
|
||||
public void showMethods() {
|
||||
for ( Method method : getWorkObject().getClass().getMethods() ) {
|
||||
String returnString = method.getReturnType().getName();
|
||||
System.out.print( returnString + " " + method.getName() + "(" );
|
||||
|
||||
Class<?>[] parameterTypes = method.getParameterTypes();
|
||||
|
||||
for ( int k = 0; k < parameterTypes.length; k++ ) {
|
||||
String parameterString = parameterTypes[k].getName();
|
||||
System.out.print( " " + parameterString );
|
||||
|
||||
if ( k < parameterTypes.length - 1 )
|
||||
System.out.print( ", " );
|
||||
}
|
||||
System.out.print( " )" );
|
||||
|
||||
Class<?>[] exceptions = method.getExceptionTypes();
|
||||
|
||||
if ( exceptions.length > 0 ) {
|
||||
System.out.print( " throws " );
|
||||
for ( int k = 0; k < exceptions.length; k++ ) {
|
||||
System.out.print( exceptions[k].getName() );
|
||||
if ( k < exceptions.length - 1)
|
||||
System.out.print( ", " );
|
||||
}
|
||||
}
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean m_upperSearch = false;
|
||||
public boolean getUpperSearch() { return m_upperSearch; }
|
||||
|
||||
public ReflectClass(Object o) {
|
||||
this.m_workObject = o;
|
||||
|
||||
}
|
||||
|
||||
public ReflectClass(Object o, boolean upperSearch) {
|
||||
this.m_workObject = o;
|
||||
this.m_upperSearch = upperSearch;
|
||||
}
|
||||
|
||||
public static void main(String[] arg) {
|
||||
|
||||
// MenuBarButtonExpressions barExpressions = new MenuBarButtonExpressions(MenuBarButtonAction.PRINT, "Text", "/image");
|
||||
// ReflectClass reflectClass = new ReflectClass(barExpressions);
|
||||
// reflectClass.showMethods();
|
||||
//
|
||||
// reflectClass.showFields();
|
||||
|
||||
}
|
||||
|
||||
public void showFields() {
|
||||
|
||||
Field[] fields = getWorkObject().getClass().getDeclaredFields();
|
||||
|
||||
for (Field field : fields) {
|
||||
System.out.println(field.getName());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public List<String> getAllFields() {
|
||||
List<String> resultList = new ArrayList<String>();
|
||||
Field[] fields = getWorkObject().getClass().getDeclaredFields();
|
||||
|
||||
for (Field field : fields) {
|
||||
resultList.add(field.getName());
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
||||
public String getType(String fieldname) {
|
||||
String result = null;
|
||||
try {
|
||||
|
||||
if (fieldname == null || fieldname.trim().length() == 0)
|
||||
return "";
|
||||
|
||||
if (getUpperSearch()) {
|
||||
result = getWorkObject().getClass().getDeclaredField(fieldname.trim().toUpperCase()).getType().getName();
|
||||
} else {
|
||||
result = getWorkObject().getClass().getDeclaredField(fieldname.trim().toLowerCase()).getType().getName();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return "";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,148 @@
|
||||
package de.tools;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
import org.eclnt.jsfserver.util.HttpSessionAccess;
|
||||
|
||||
import jakarta.servlet.http.HttpSession;
|
||||
|
||||
public class SessionUtil {
|
||||
|
||||
private SessionUtil() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to return Client IP
|
||||
* @return Client IP
|
||||
*/
|
||||
public static String getClientIP(){
|
||||
return HttpSessionAccess.getCurrentRequest().getRemoteAddr();
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to return Client IP
|
||||
* @return Client IP
|
||||
*/
|
||||
public static String getClientAddr(){
|
||||
return HttpSessionAccess.getCurrentRequest().getRemoteHost();
|
||||
}
|
||||
|
||||
|
||||
public static String getInetAddress() {
|
||||
String adr = null;
|
||||
|
||||
try {
|
||||
adr = InetAddress.getByName(HttpSessionAccess.getCurrentRequest().getRemoteAddr()).getHostName();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return adr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to return the Servers IP
|
||||
* @return Server IP
|
||||
*/
|
||||
public static String getServerIP(){
|
||||
try {
|
||||
return InetAddress.getLocalHost().getHostAddress();
|
||||
} catch (UnknownHostException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Function to return the ServerHostname
|
||||
* @return Server Hostname
|
||||
*/
|
||||
public static String getServerHostname(){
|
||||
try {
|
||||
return InetAddress.getLocalHost().getHostName();
|
||||
} catch (UnknownHostException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Return activ HttpSession
|
||||
*
|
||||
* @return HttpSession
|
||||
*/
|
||||
public static HttpSession getHttpSession() {
|
||||
HttpSession httpSession = null;
|
||||
try {
|
||||
httpSession = HttpSessionAccess.getCurrentHttpSession();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return httpSession;
|
||||
}
|
||||
|
||||
|
||||
// /**
|
||||
// * Return SessionType
|
||||
// *
|
||||
// * @return SessionType
|
||||
// */
|
||||
// public static SessionTyp getServerSessionType() {
|
||||
// SessionTyp sessionType = SessionTyp.PORTAL_SESSION;
|
||||
//
|
||||
// try {
|
||||
//
|
||||
// String serverName = getServerHostname();
|
||||
//
|
||||
// if (serverName != null) {
|
||||
// if (serverName.startsWith("NESAS")) {
|
||||
// sessionType = SessionTyp.PORTAL_SESSION;
|
||||
// } else {
|
||||
// sessionType = SessionTyp.CLIENT_SESSION;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// return sessionType;
|
||||
// }
|
||||
|
||||
/**
|
||||
* Return SessionID
|
||||
* @return SessionID
|
||||
*/
|
||||
public static String getHttpSessionID() {
|
||||
return HttpSessionAccess.getCurrentHttpSession().getId();
|
||||
}
|
||||
|
||||
public static String getRootPath() {
|
||||
String rootPath = null;
|
||||
try {
|
||||
rootPath = HttpSessionAccess.getServletContext().getRealPath("/");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return rootPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return gibt den Namen des Tomcats zurück, z.B. GWPTESTTC1
|
||||
*/
|
||||
public static String getSessionName() {
|
||||
String id = null;
|
||||
try {
|
||||
id = HttpSessionAccess.getCurrentHttpSession().getId();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (id != null && id.indexOf(".") != -1) {
|
||||
id = id.substring(id.indexOf(".")+1);
|
||||
} else {
|
||||
id = "";
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||
#Created by org.eclnt.editor.resourceeditor.ResourceEditor
|
||||
#Mon Dec 03 13:07:50 CET 2018
|
||||
|
||||
accept = Accept
|
||||
|
||||
accept_delay = Accept ($DELAY$)
|
||||
|
||||
cancel = Cancel
|
||||
|
||||
e-mail = E-Mail
|
||||
|
||||
e_mail = Email
|
||||
|
||||
logoutuser = Soll der User ausgeloggt werden?
|
||||
|
||||
no = No
|
||||
|
||||
ok = Ok
|
||||
|
||||
ok_delay = Ok ($DELAY$)
|
||||
|
||||
test = Vorgabe
|
||||
|
||||
yes = Yes
|
||||
@ -0,0 +1,22 @@
|
||||
|
||||
accept = Accept
|
||||
|
||||
accept_delay = Accept ($DELAY$)
|
||||
|
||||
cancel = Cancel
|
||||
|
||||
e-mail = E-Mail
|
||||
|
||||
e_mail = Email
|
||||
|
||||
logoutuser = Soll der User ausgeloggt werden?
|
||||
|
||||
no = No
|
||||
|
||||
ok = Ok
|
||||
|
||||
ok_delay = Ok ($DELAY$)
|
||||
|
||||
test = Deutsch
|
||||
|
||||
yes = Yes
|
||||
@ -0,0 +1,22 @@
|
||||
|
||||
accept = Accept
|
||||
|
||||
accept_delay = Accept ($DELAY$)
|
||||
|
||||
cancel = Cancel
|
||||
|
||||
e-mail = E-Mail
|
||||
|
||||
e_mail = Email
|
||||
|
||||
logoutuser = Should the user be logged out?\r\n
|
||||
|
||||
no = No
|
||||
|
||||
ok = Ok
|
||||
|
||||
ok_delay = Ok ($DELAY$)
|
||||
|
||||
test = Englisch
|
||||
|
||||
yes = Yes
|
||||
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration>
|
||||
<Properties>
|
||||
<Property name="logPath">${sys:catalina.home}/temp</Property>
|
||||
</Properties>
|
||||
<Appenders>
|
||||
<Console name="DefaultConsole">
|
||||
<PatternLayout pattern='[%d{yyyy-MM-dd HH:mm:ss}] %-5p %X{FILE}:%X{METHOD}:%X{LINE} - %X{USERNAME} - %X{SOURCE} - %X{EXCEPTION} - %m%n' />
|
||||
</Console>
|
||||
<!-- Hibernate oder ähnliches welches nicht abfangbar ist -->
|
||||
<Console name="ClassesConsole">
|
||||
<Patternlayout pattern='[%d{yyyy-MM-dd HH:mm:ss}] %-5p %t - %m%n' />
|
||||
</Console>
|
||||
|
||||
<RollingFile name="DefaultLog" fileName="${logPath}/WebPortal.log" filePattern="${logPath}/WebPortal-%d{MM-dd-yyyy}.log" append="true">
|
||||
<PatternLayout pattern='[%d{yyyy-MM-dd HH:mm:ss}] %-5p %X{FILE}:%X{METHOD}:%X{LINE} - %X{USERNAME} - %X{SOURCE} - %X{EXCEPTION} - %m%n' />
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy interval="1"/>
|
||||
<SizeBasedTriggeringPolicy size="50 MB" />
|
||||
</Policies>
|
||||
</RollingFile>
|
||||
|
||||
<RollingFile name="ClassesLog" fileName="${logPath}/JavaClasses.log" filePattern="${logPath}/JavaClasses-%d{MM-dd-yyyy}.log" append="true">
|
||||
<PatternLayout pattern='[%d{yyyy-MM-dd HH:mm:ss}] %-5p Thread:%t - %m%n' />
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy interval="1"/>
|
||||
<SizeBasedTriggeringPolicy size="50 MB" />
|
||||
</Policies>
|
||||
</RollingFile>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Root level="INFO">
|
||||
<AppenderRef ref="DefaultConsole" />
|
||||
<appender-ref ref="DefaultLog" />
|
||||
</Root>
|
||||
<logger name="org" level="ERROR" additivity="false" includeLocation="false">
|
||||
<appender-ref ref="ClassesConsole" />
|
||||
<appender-ref level="INFO" ref="ClassesLog" />
|
||||
</logger>
|
||||
<Logger name="de.geis" level="INFO" additivity="false" includeLocation="false">
|
||||
<appender-ref ref="DefaultConsole" />
|
||||
<appender-ref level="DEBUG" ref="DefaultLog" />
|
||||
</Logger>
|
||||
<Logger name="com.zaxxer.hikari.HikariConfig" level="INFO" additivity="false" includeLocation="false">
|
||||
<appender-ref ref="DefaultConsole" />
|
||||
<appender-ref level="DEBUG" ref="DefaultLog" />
|
||||
</Logger>
|
||||
<Logger name="de.geis.examples" level="INFO" additivity="false" includeLocation="false">
|
||||
<appender-ref ref="DefaultConsole" />
|
||||
</Logger>
|
||||
<Logger name="managedbeans" level="INFO" additivity="false" includeLocation="false">
|
||||
<appender-ref ref="DefaultConsole" />
|
||||
<appender-ref level="DEBUG" ref="DefaultLog" />
|
||||
</Logger>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
|
||||
<!-- https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html -->
|
||||
@ -0,0 +1,2 @@
|
||||
org.apache.catalina.core.ContainerBase.[Catalina].level=WARNING
|
||||
org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler
|
||||
@ -0,0 +1,3 @@
|
||||
#Created by CapatainCasa layout tools
|
||||
#Thu Sep 19 06:05:32 CEST 2024
|
||||
home=Home Button
|
||||
@ -0,0 +1,4 @@
|
||||
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||
#Created by cctranslate
|
||||
#Tue Jul 04 07:04:10 CEST 2017
|
||||
home=Home Button
|
||||
@ -0,0 +1,4 @@
|
||||
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||
#Created by cctranslate
|
||||
#Tue Jul 04 07:04:10 CEST 2017
|
||||
home=Home Button
|
||||
@ -0,0 +1,4 @@
|
||||
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||
#Created by org.eclnt.editor.resourceeditor.ResourceEditor
|
||||
#Fri Aug 18 14:40:38 CEST 2017
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||
#Created by cctranslate
|
||||
#Tue Jul 04 07:04:10 CEST 2017
|
||||
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||
#Created by cctranslate
|
||||
#Tue Jul 04 07:04:10 CEST 2017
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<resource name="literals" package=""/>
|
||||
<resource name="literalsTooltip" package="tooltip"/>
|
||||
<resource name="literalsWorkplace" package="workplace"/>
|
||||
</resources>
|
||||
|
||||
@ -0,0 +1,193 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<t:layoutdefinition xmlns:t="http://www.CaptainCasa.com/controllibrary/t" >
|
||||
|
||||
<t:rowbodypane id="g_4" >
|
||||
<t:row id="g_1" >
|
||||
<t:pane id="g_3" height="100%" width="100%" >
|
||||
<t:rowdistance id="g_9" />
|
||||
<t:row id="g_6" >
|
||||
<t:gridlayoutpane id="g_7" border="left:2;right:2;top:2;bottom:2;color:#ed7d31" height="100%" width="100%" >
|
||||
<t:gridlayoutrowdistance id="g_14" height="10" />
|
||||
<t:gridlayoutrow id="g_8" >
|
||||
<t:coldistance id="g_12" width="11%" />
|
||||
<t:pane id="g_10" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_11" />
|
||||
</t:pane>
|
||||
<t:pane id="g_133" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_134" />
|
||||
</t:pane>
|
||||
<t:pane id="g_135" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_136" />
|
||||
</t:pane>
|
||||
<t:pane id="g_137" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_138" />
|
||||
</t:pane>
|
||||
<t:pane id="g_139" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_140" />
|
||||
</t:pane>
|
||||
<t:pane id="g_141" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_142" />
|
||||
</t:pane>
|
||||
<t:pane id="g_143" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_144" />
|
||||
</t:pane>
|
||||
<t:coldistance id="g_13" width="11%" />
|
||||
</t:gridlayoutrow>
|
||||
<t:gridlayoutrow id="g_146" >
|
||||
<t:coldistance id="g_147" width="11%" />
|
||||
<t:pane id="g_148" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_149" />
|
||||
</t:pane>
|
||||
<t:pane id="g_150" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_151" />
|
||||
</t:pane>
|
||||
<t:pane id="g_152" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_153" />
|
||||
</t:pane>
|
||||
<t:pane id="g_154" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_155" />
|
||||
</t:pane>
|
||||
<t:pane id="g_156" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_157" />
|
||||
</t:pane>
|
||||
<t:pane id="g_158" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_159" />
|
||||
</t:pane>
|
||||
<t:pane id="g_160" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_161" />
|
||||
</t:pane>
|
||||
<t:coldistance id="g_162" width="11%" />
|
||||
</t:gridlayoutrow>
|
||||
<t:gridlayoutrow id="g_163" >
|
||||
<t:coldistance id="g_164" width="11%" />
|
||||
<t:pane id="g_165" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_166" />
|
||||
</t:pane>
|
||||
<t:pane id="g_167" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_168" />
|
||||
</t:pane>
|
||||
<t:pane id="g_169" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_170" />
|
||||
</t:pane>
|
||||
<t:pane id="g_171" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_172" />
|
||||
</t:pane>
|
||||
<t:pane id="g_173" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_174" />
|
||||
</t:pane>
|
||||
<t:pane id="g_175" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_176" />
|
||||
</t:pane>
|
||||
<t:pane id="g_177" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_178" />
|
||||
</t:pane>
|
||||
<t:coldistance id="g_179" width="11%" />
|
||||
</t:gridlayoutrow>
|
||||
<t:gridlayoutrow id="g_180" >
|
||||
<t:coldistance id="g_181" width="11%" />
|
||||
<t:pane id="g_182" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_183" />
|
||||
</t:pane>
|
||||
<t:pane id="g_184" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_185" />
|
||||
</t:pane>
|
||||
<t:pane id="g_186" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_187" />
|
||||
</t:pane>
|
||||
<t:pane id="g_188" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_189" />
|
||||
</t:pane>
|
||||
<t:pane id="g_190" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_191" />
|
||||
</t:pane>
|
||||
<t:pane id="g_192" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_193" />
|
||||
</t:pane>
|
||||
<t:pane id="g_194" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_195" />
|
||||
</t:pane>
|
||||
<t:coldistance id="g_196" width="11%" />
|
||||
</t:gridlayoutrow>
|
||||
<t:gridlayoutrow id="g_197" >
|
||||
<t:coldistance id="g_198" width="11%" />
|
||||
<t:pane id="g_199" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_200" />
|
||||
</t:pane>
|
||||
<t:pane id="g_201" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_202" />
|
||||
</t:pane>
|
||||
<t:pane id="g_203" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_204" />
|
||||
</t:pane>
|
||||
<t:pane id="g_205" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_206" />
|
||||
</t:pane>
|
||||
<t:pane id="g_207" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_208" />
|
||||
</t:pane>
|
||||
<t:pane id="g_209" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_210" />
|
||||
</t:pane>
|
||||
<t:pane id="g_211" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_212" />
|
||||
</t:pane>
|
||||
<t:coldistance id="g_213" width="11%" />
|
||||
</t:gridlayoutrow>
|
||||
<t:gridlayoutrow id="g_214" >
|
||||
<t:coldistance id="g_215" width="11%" />
|
||||
<t:pane id="g_216" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_217" />
|
||||
</t:pane>
|
||||
<t:pane id="g_218" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_219" />
|
||||
</t:pane>
|
||||
<t:pane id="g_220" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_221" />
|
||||
</t:pane>
|
||||
<t:pane id="g_222" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_223" />
|
||||
</t:pane>
|
||||
<t:pane id="g_224" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_225" />
|
||||
</t:pane>
|
||||
<t:pane id="g_226" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_227" />
|
||||
</t:pane>
|
||||
<t:pane id="g_228" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_229" />
|
||||
</t:pane>
|
||||
<t:coldistance id="g_230" width="11%" />
|
||||
</t:gridlayoutrow>
|
||||
<t:gridlayoutrow id="g_231" >
|
||||
<t:coldistance id="g_232" width="11%" />
|
||||
<t:pane id="g_233" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_234" />
|
||||
</t:pane>
|
||||
<t:pane id="g_235" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_236" />
|
||||
</t:pane>
|
||||
<t:pane id="g_237" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_238" />
|
||||
</t:pane>
|
||||
<t:pane id="g_239" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_240" />
|
||||
</t:pane>
|
||||
<t:pane id="g_241" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_242" />
|
||||
</t:pane>
|
||||
<t:pane id="g_243" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_244" />
|
||||
</t:pane>
|
||||
<t:pane id="g_245" border="#{d.WandLayout17PBean.paneLine}" height="#{d.WandLayout17PBean.prozentSatz}" width="#{d.WandLayout17PBean.prozentSatz}" >
|
||||
<t:row id="g_246" />
|
||||
</t:pane>
|
||||
<t:coldistance id="g_247" width="11%" />
|
||||
</t:gridlayoutrow>
|
||||
<t:gridlayoutrowdistance id="g_131" height="10" />
|
||||
</t:gridlayoutpane>
|
||||
</t:row>
|
||||
</t:pane>
|
||||
</t:row>
|
||||
</t:rowbodypane>
|
||||
|
||||
</t:layoutdefinition>
|
||||
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<t:layoutdefinition xmlns:t="http://www.CaptainCasa.com/controllibrary/t" >
|
||||
|
||||
<t:rowbodypane id="g_2" >
|
||||
<t:rowdistance id="g_3" height="20%" />
|
||||
<t:row id="g_4" >
|
||||
<t:coldistance id="g_5" width="50%" />
|
||||
<t:label id="g_6" font="size:24" text="Lights On/Off" />
|
||||
<t:coldistance id="g_7" width="50%" />
|
||||
</t:row>
|
||||
<t:rowdistance id="g_8" height="10%" />
|
||||
<t:row id="g_9" >
|
||||
<t:coldistance id="g_10" width="20%" />
|
||||
<t:button id="g_11" actionListener="#{d.LightsOnOffBean.onButton1}" background="#{d.LightsOnOffBean.colorButton1}" enabled="#{d.LightsOnOffBean.enabledButton1}" height="20%" width="20%" />
|
||||
<t:button id="g_12" actionListener="#{d.LightsOnOffBean.onButton2}" background="#{d.LightsOnOffBean.colorButton2}" enabled="#{d.LightsOnOffBean.enabledButton2}" height="20%" width="20%" />
|
||||
<t:button id="g_13" actionListener="#{d.LightsOnOffBean.onButton3}" background="#{d.LightsOnOffBean.colorButton3}" enabled="#{d.LightsOnOffBean.enabledButton3}" height="20%" width="20%" />
|
||||
</t:row>
|
||||
<t:row id="g_14" >
|
||||
<t:coldistance id="g_15" width="20%" />
|
||||
<t:button id="g_16" actionListener="#{d.LightsOnOffBean.onButton4}" background="#{d.LightsOnOffBean.colorButton4}" enabled="#{d.LightsOnOffBean.enabledButton4}" height="20%" width="20%" />
|
||||
<t:button id="g_17" actionListener="#{d.LightsOnOffBean.onButton5}" background="#{d.LightsOnOffBean.colorButton5}" enabled="#{d.LightsOnOffBean.enabledButton5}" height="20%" width="20%" />
|
||||
<t:button id="g_18" actionListener="#{d.LightsOnOffBean.onButton6}" background="#{d.LightsOnOffBean.colorButton6}" enabled="#{d.LightsOnOffBean.enabledButton6}" height="20%" width="20%" />
|
||||
</t:row>
|
||||
<t:row id="g_19" >
|
||||
<t:coldistance id="g_20" width="20%" />
|
||||
<t:button id="g_21" actionListener="#{d.LightsOnOffBean.onButton7}" background="#{d.LightsOnOffBean.colorButton7}" enabled="#{d.LightsOnOffBean.enabledButton7}" height="20%" width="20%" />
|
||||
<t:button id="g_22" actionListener="#{d.LightsOnOffBean.onButton8}" background="#{d.LightsOnOffBean.colorButton8}" enabled="#{d.LightsOnOffBean.enabledButton8}" height="20%" width="20%" />
|
||||
<t:button id="g_23" actionListener="#{d.LightsOnOffBean.onButton9}" background="#{d.LightsOnOffBean.colorButton9}" enabled="#{d.LightsOnOffBean.enabledButton9}" height="20%" width="20%" />
|
||||
</t:row>
|
||||
<t:rowdistance id="g_24" height="20" />
|
||||
<t:row id="g_25" >
|
||||
<t:coldistance id="g_26" width="50%" />
|
||||
<t:label id="g_27" font="size:18" text="#{d.LightsOnOffBean.resultText}" />
|
||||
<t:coldistance id="g_28" width="50%" />
|
||||
</t:row>
|
||||
<t:rowdistance id="g_29" height="10" />
|
||||
<t:row id="g_30" >
|
||||
<t:coldistance id="g_31" width="50%" />
|
||||
<t:button id="g_32" actionListener="#{d.LightsOnOffBean.onReset}" font="size:18" text="Neu beginnen" />
|
||||
</t:row>
|
||||
<t:rowdistance id="g_33" height="20%" />
|
||||
</t:rowbodypane>
|
||||
|
||||
</t:layoutdefinition>
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<t:layoutdefinition xmlns:t="http://www.CaptainCasa.com/controllibrary/t" >
|
||||
|
||||
<t:beanprocessing id="g_1" beanbinding="#{d.TicTacToeBean}" />
|
||||
<t:rowbodypane id="g_4" />
|
||||
|
||||
</t:layoutdefinition>
|
||||
@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Webportal - Geis Gruppe</title>
|
||||
<meta http-equiv="refresh" content="0; URL='lightsOnOffPage.risc" />
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in new issue