forked from trsvax/tapestry-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
11 changed files
with
415 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/java/com/trsvax/bootstrap/environment/AlertsEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.trsvax.bootstrap.environment; | ||
|
||
|
||
public interface AlertsEnvironment extends FWEnvironment { | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/com/trsvax/bootstrap/environment/AlertsValues.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.trsvax.bootstrap.environment; | ||
|
||
import com.trsvax.bootstrap.FrameworkMixin; | ||
|
||
public class AlertsValues implements AlertsEnvironment { | ||
private boolean isInstrumented; | ||
private String type; | ||
private String prefix = "alert"; | ||
|
||
public AlertsValues(AlertsEnvironment values) { | ||
if ( values != null ) { | ||
this.type = values.getType(null); | ||
} | ||
} | ||
|
||
public boolean isInstrumented() { | ||
return isInstrumented; | ||
} | ||
|
||
public void withInstrumented(boolean value) { | ||
isInstrumented = value; | ||
} | ||
|
||
public String getType(FrameworkMixin mixin) { | ||
if ( mixin == null ) { | ||
return type; | ||
} | ||
return mixin.getType() == null ? type : mixin.getType(); | ||
} | ||
|
||
public AlertsValues withType(String type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
public String getPrefix() { | ||
return prefix; | ||
} | ||
|
||
|
||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/com/trsvax/bootstrap/environment/BeanDisplayEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.trsvax.bootstrap.environment; | ||
|
||
|
||
public interface BeanDisplayEnvironment extends FWEnvironment { | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/com/trsvax/bootstrap/environment/BeanDisplayValues.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.trsvax.bootstrap.environment; | ||
|
||
import com.trsvax.bootstrap.FrameworkMixin; | ||
|
||
public class BeanDisplayValues implements BeanDisplayEnvironment { | ||
private boolean isInstrumented; | ||
private String type; | ||
private String prefix = "dl"; | ||
|
||
public BeanDisplayValues(BeanDisplayEnvironment values) { | ||
if ( values != null ) { | ||
this.type = values.getType(null); | ||
} | ||
} | ||
|
||
public boolean isInstrumented() { | ||
return isInstrumented; | ||
} | ||
|
||
public void withInstrumented(boolean value) { | ||
isInstrumented = value; | ||
} | ||
|
||
public String getType(FrameworkMixin mixin) { | ||
if ( mixin == null ) { | ||
return type; | ||
} | ||
return mixin.getType() == null ? type : mixin.getType(); | ||
} | ||
|
||
public BeanDisplayValues withType(String type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
public String getPrefix() { | ||
return prefix; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.