static Object boxKeyword(Box paramBox, String paramString, Object paramObject) { if (paramString == Lit2) { paramBox.setCellSpacing(paramObject); return Values.empty; } return misc.error$V( Format.formatToString(0, new Object[] {"unknown box attribute ~s", paramString}), new Object[0]); }
static Object textKeyword(Text paramText, String paramString, Object paramObject) { if (paramString == Lit1) { if (paramObject == null) {} for (paramString = null; ; paramString = paramObject.toString()) { paramText.setText(paramString); return Values.empty; } } return misc.error$V( Format.formatToString(0, new Object[] {"unknown text attribute ~s", paramString}), new Object[0]); }
static Object windowKeyword(Window paramWindow, String paramString, Object paramObject) { if (paramString == "title") { if (paramObject == null) {} for (paramString = null; ; paramString = paramObject.toString()) { paramWindow.setTitle(paramString); return Values.empty; } } if (paramString == "content") { paramWindow.setContent(paramObject); return Values.empty; } if (paramString == "menubar") { paramWindow.setMenuBar(paramObject); return Values.empty; } return misc.error$V( Format.formatToString(0, new Object[] {"unknown window attribute ~s", paramString}), new Object[0]); }
static Object buttonKeyword(Button paramButton, String paramString, Object paramObject) { boolean bool = true; if (paramString == "foreground") { paramButton.setForeground(asColor(paramObject)); return Values.empty; } if (paramString == "background") { paramButton.setBackground(asColor(paramObject)); return Values.empty; } if (paramString == "action") { paramButton.setAction(paramObject); return Values.empty; } if (paramString == "text") { if (paramObject == null) {} for (paramString = null; ; paramString = paramObject.toString()) { paramButton.setText(paramString); return Values.empty; } } if (paramString == "disabled") {} try { paramString = Boolean.FALSE; if (paramObject != paramString) {} for (; ; ) { paramButton.setDisabled(bool); return Values.empty; bool = false; } return misc.error$V( Format.formatToString(0, new Object[] {"unknown button attribute ~s", paramString}), new Object[0]); } catch (ClassCastException paramButton) { throw new WrongType( paramButton, "gnu.kawa.models.Button.setDisabled(boolean)", 2, paramObject); } }