Skip to content

Commit

Permalink
Angular Colour Picker, Render updates for standalone components
Browse files Browse the repository at this point in the history
  • Loading branch information
GedMarc committed Sep 2, 2024
1 parent e83f96d commit dca7e2b
Show file tree
Hide file tree
Showing 10 changed files with 227 additions and 213 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/jwebmp/core/base/ajax/AjaxResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected Set<String> getFeatureQueries()
Set<String> list = new LinkedHashSet<>();
getFeatures().forEach(feature ->
{
feature.preConfigure();
feature.toString();
list.add(feature.renderJavascript()
.toString());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package com.jwebmp.core.base.html.interfaces;

import com.jwebmp.core.base.interfaces.*;
import com.jwebmp.core.base.interfaces.CastableComponent;

/**
* Defines the general interface for components that is allowed on most components
Expand All @@ -26,10 +26,8 @@
* @since 2014/10/26
*/

public interface GlobalChildren {
void init();

void preConfigure();
public interface GlobalChildren
{

boolean isConfigured();

Expand All @@ -42,7 +40,8 @@ public interface GlobalChildren {
*
* @return
*/
default CastableComponent cast() {
default CastableComponent cast()
{
return (CastableComponent) this;
}

Expand Down
42 changes: 16 additions & 26 deletions src/main/java/com/jwebmp/core/base/html/interfaces/LifeCycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,23 @@
*/
public interface LifeCycle
{
/**
* Initializes
*/
void init();
/**
* Is Configured
*
* @return if it is configured
*/

/**
* Preconfigures
*/
void preConfigure();
boolean isConfigured();

/**
* Is Configured
*
* @return if it is configured
*/
/**
* If it is initialized
*
* @return if the component has been initialized
*/
boolean isInitialized();

boolean isConfigured();

/**
* If it is initialized
*
* @return if the component has been initialized
*/
boolean isInitialized();

/**
* What happens on destroy
*/
void destroy();
/**
* What happens on destroy
*/
void destroy();
}
Loading

0 comments on commit dca7e2b

Please sign in to comment.