Skip to content

Commit

Permalink
Added Copyright.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdwyah committed Feb 12, 2008
1 parent 360c333 commit 0cb4838
Show file tree
Hide file tree
Showing 237 changed files with 26,581 additions and 23,026 deletions.
601 changes: 308 additions & 293 deletions src/main/java/com/apress/progwt/client/GWTApp.java

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions src/main/java/com/apress/progwt/client/Interactive.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2008 Jeff Dwyer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.apress.progwt.client;

import com.allen_sauer.gwt.log.client.Log;
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/apress/progwt/client/SampleApp.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2008 Jeff Dwyer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.apress.progwt.client;

import com.apress.progwt.client.calculator.Calculator;
Expand Down
61 changes: 38 additions & 23 deletions src/main/java/com/apress/progwt/client/VerticalLabelApp.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
package com.apress.progwt.client;

import com.apress.progwt.client.college.gui.ext.VerticalLabel;
import com.google.gwt.user.client.ui.RootPanel;

public class VerticalLabelApp extends GWTApp {

public VerticalLabelApp(int pageID) {
super(pageID);

int total = Integer.parseInt(getParam("total"));

for (int i = 0; i < total; i++) {
String text = getParam("text" + i);
String id = getParam("id" + i);

RootPanel.get(id).add(new VerticalLabel(text));

}
RootPanel.get(getPreLoadID()).setVisible(false);
}

}
/*
* Copyright 2008 Jeff Dwyer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.apress.progwt.client;

import com.apress.progwt.client.college.gui.ext.VerticalLabel;
import com.google.gwt.user.client.ui.RootPanel;

public class VerticalLabelApp extends GWTApp {

public VerticalLabelApp(int pageID) {
super(pageID);

int total = Integer.parseInt(getParam("total"));

for (int i = 0; i < total; i++) {
String text = getParam("text" + i);
String id = getParam("id" + i);

RootPanel.get(id).add(new VerticalLabel(text));

}
RootPanel.get(getPreLoadID()).setVisible(false);
}

}
49 changes: 32 additions & 17 deletions src/main/java/com/apress/progwt/client/calculator/CalcButton.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
package com.apress.progwt.client.calculator;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;

public abstract class CalcButton extends Button implements ClickListener {

public CalcButton(String displayString) {
super(displayString);
addStyleDependentName("CalcButton");
addClickListener(this);
}

protected void explode() {
GUIEffects.appear(this, 200);
}
}
/*
* Copyright 2008 Jeff Dwyer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.apress.progwt.client.calculator;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;

public abstract class CalcButton extends Button implements ClickListener {

public CalcButton(String displayString) {
super(displayString);
addStyleDependentName("CalcButton");
addClickListener(this);
}

protected void explode() {
GUIEffects.appear(this, 200);
}
}
Loading

0 comments on commit 0cb4838

Please sign in to comment.