Class GridstackProvider
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jgrapes.webconsole.base.PageResourceProvider
org.jgrapes.webconsole.provider.gridstack.GridstackProvider
- All Implemented Interfaces:
Iterable<ComponentType>
,Channel
,ComponentType
,Eligible
,Manager
Provider for the Gridstack.js library.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Deprecated.No longer needed because gridstack provides its own touch library now.Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGridstackProvider
(Channel componentChannel) Creates a new component with its channel set to the given channel.GridstackProvider
(Channel componentChannel, Map<?, ?> properties) Creates a new component with its channel set to the given channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onConsoleReady
(ConsoleReady event, ConsoleConnection connection) OnConsoleReady
, fire the appropriateAddPageResources
.Methods inherited from class org.jgrapes.webconsole.base.PageResourceProvider
onResourceRequest, resourceBundle
Methods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setName
Methods inherited from class org.jgrapes.core.internal.ComponentVertex
activeEventPipeline, addHandler, attach, channelReplacements, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGenerator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GridstackProvider
Creates a new component with its channel set to the given channel.- Parameters:
componentChannel
- the channel that the component’s handlers listen on by default and thatManager.fire(Event, Channel...)
sends the event to
-
GridstackProvider
Creates a new component with its channel set to the given channel.- Parameters:
componentChannel
- the channel that the component’s handlers listen on by default and thatManager.fire(Event, Channel...)
sends the event toproperties
- the properties used to configure the component
-
-
Method Details
-
onConsoleReady
@Handler(priority=100) public void onConsoleReady(ConsoleReady event, ConsoleConnection connection) throws TemplateNotFoundException, MalformedTemplateNameException, ParseException, IOException OnConsoleReady
, fire the appropriateAddPageResources
.- Parameters:
event
- the eventconnection
- the web console connection- Throws:
TemplateNotFoundException
- the template not found exceptionMalformedTemplateNameException
- the malformed template name exceptionParseException
- the parse exceptionIOException
- Signals that an I/O exception has occurred.
-