Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/client/iconservice/IconService.java

Diff revisions: vs.
  @@ -1,69 +1,69 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.iconservice;
3 -
4 - import org.litesoft.commonfoundation.typeutils.*;
5 - import org.litesoft.logger.*;
6 -
7 - public interface IconService {
8 - public static Logger LOGGER = LoggerFactory.getLogger( IconService.class );
9 -
10 - public interface Definition {
11 - public String getSmallIconURL();
12 -
13 - public String getLargeIconURL();
14 -
15 - public String getTooltip();
16 - }
17 -
18 - public static class DefinitionImpl implements Definition {
19 - private String mSmallIconURL, mLargeIconURL, mTooltip;
20 -
21 - public DefinitionImpl( String pSmallIconURL, String pLargeIconURL, String pTooltip ) {
22 - mSmallIconURL = pSmallIconURL;
23 - mLargeIconURL = pLargeIconURL;
24 - mTooltip = pTooltip;
25 - }
26 -
27 - public String getSmallIconURL() {
28 - return mSmallIconURL;
29 - }
30 -
31 - public String getLargeIconURL() {
32 - return mLargeIconURL;
33 - }
34 -
35 - public String getTooltip() {
36 - return mTooltip;
37 - }
38 - }
39 -
40 - public static class DefinitionPlus {
41 - private boolean mWasFactoryRef;
42 - private String mCurrentFloaterTitle;
43 - private Definition mDefinition;
44 -
45 - public DefinitionPlus( boolean pWasFactoryRef, String pCurrentFloaterTitle, Definition pDefinition ) {
46 - mWasFactoryRef = pWasFactoryRef;
47 - mCurrentFloaterTitle = pCurrentFloaterTitle;
48 - mDefinition = pDefinition;
49 - }
50 -
51 - public boolean wasFactoryRef() {
52 - return mWasFactoryRef;
53 - }
54 -
55 - public boolean wasCurrentFloaterTitle() {
56 - return Objects.isNotNull( mCurrentFloaterTitle );
57 - }
58 -
59 - public String getCurrentFloaterTitle() {
60 - return mCurrentFloaterTitle;
61 - }
62 -
63 - public Definition getDefinition() {
64 - return mDefinition;
65 - }
66 - }
67 -
68 - public DefinitionPlus getDefinition( String pFloaterFactoryRef, String pCurrentFloaterTitle );
69 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.iconservice;
3 +
4 + import org.litesoft.commonfoundation.base.*;
5 + import org.litesoft.logger.*;
6 +
7 + public interface IconService {
8 + public static Logger LOGGER = LoggerFactory.getLogger( IconService.class );
9 +
10 + public interface Definition {
11 + public String getSmallIconURL();
12 +
13 + public String getLargeIconURL();
14 +
15 + public String getTooltip();
16 + }
17 +
18 + public static class DefinitionImpl implements Definition {
19 + private String mSmallIconURL, mLargeIconURL, mTooltip;
20 +
21 + public DefinitionImpl( String pSmallIconURL, String pLargeIconURL, String pTooltip ) {
22 + mSmallIconURL = pSmallIconURL;
23 + mLargeIconURL = pLargeIconURL;
24 + mTooltip = pTooltip;
25 + }
26 +
27 + public String getSmallIconURL() {
28 + return mSmallIconURL;
29 + }
30 +
31 + public String getLargeIconURL() {
32 + return mLargeIconURL;
33 + }
34 +
35 + public String getTooltip() {
36 + return mTooltip;
37 + }
38 + }
39 +
40 + public static class DefinitionPlus {
41 + private boolean mWasFactoryRef;
42 + private String mCurrentFloaterTitle;
43 + private Definition mDefinition;
44 +
45 + public DefinitionPlus( boolean pWasFactoryRef, String pCurrentFloaterTitle, Definition pDefinition ) {
46 + mWasFactoryRef = pWasFactoryRef;
47 + mCurrentFloaterTitle = pCurrentFloaterTitle;
48 + mDefinition = pDefinition;
49 + }
50 +
51 + public boolean wasFactoryRef() {
52 + return mWasFactoryRef;
53 + }
54 +
55 + public boolean wasCurrentFloaterTitle() {
56 + return Currently.isNotNull( mCurrentFloaterTitle );
57 + }
58 +
59 + public String getCurrentFloaterTitle() {
60 + return mCurrentFloaterTitle;
61 + }
62 +
63 + public Definition getDefinition() {
64 + return mDefinition;
65 + }
66 + }
67 +
68 + public DefinitionPlus getDefinition( String pFloaterFactoryRef, String pCurrentFloaterTitle );
69 + }