Subversion Repository Public Repository

litesoft

Diff Revisions 150 vs 151 for /trunk/Java/core/Server/src/org/litesoft/servlets/iphone/GetActionButton.java

Diff revisions: vs.
  @@ -1,11 +1,11 @@
1 1 // This Source Code is in the Public Domain per: http://litesoft.org/License.txt
2 2 package org.litesoft.servlets.iphone;
3 3
4 + import java.io.*;
5 +
4 6 import org.litesoft.servlets.*;
5 7 import org.litesoft.util.template.*;
6 8
7 - import java.io.*;
8 -
9 9 public abstract class GetActionButton implements TCsub
10 10 {
11 11 private String mReplacementKey;
  @@ -32,24 +32,21 @@
32 32 }
33 33
34 34 public static final TCsub[] TC_SUBS = //
35 + {new GetActionButton( "label" )
36 + {
37 + @Override
38 + public void replace( Writer pWriter, String pReplaceNotFoundsWith, Object pReplaceFrom )
39 + throws IOException
40 + {
41 + pWriter.write( toGetAction( pReplaceFrom ).getLabel() );
42 + }
43 + }, new GetActionButton( "URL" )
35 44 {
36 - new GetActionButton( "label" )
37 - {
38 - @Override
39 - public void replace( Writer pWriter, String pReplaceNotFoundsWith, Object pReplaceFrom )
40 - throws IOException
41 - {
42 - pWriter.write( toGetAction( pReplaceFrom ).getLabel() );
43 - }
44 - },
45 - new GetActionButton( "URL" )
46 - {
47 - @Override
48 - public void replace( Writer pWriter, String pReplaceNotFoundsWith, Object pReplaceFrom )
49 - throws IOException
50 - {
51 - pWriter.write( toGetAction( pReplaceFrom ).getURL() );
52 - }
53 - }
54 - };
45 + @Override
46 + public void replace( Writer pWriter, String pReplaceNotFoundsWith, Object pReplaceFrom )
47 + throws IOException
48 + {
49 + pWriter.write( toGetAction( pReplaceFrom ).getURL() );
50 + }
51 + }};
55 52 }