Java 8 – Functional Interfaces

java-thumbnail

What are Functional Interfaces? Functional interfaces are those interfaces that has single abstract method. According to Java 8 Specification, interface can be known as functional interface if there is a single method that is compliant with the below rules: If an interface has single abstract method, then it is known as the functional interface. A functional interface can have any […]

JQuery Enabled Selector Example

jquery

It selects all the enabled elements in the form. In general, it makes activate for doing operations on elements such as input type text elements, button element etc in the document. It is recommended that it must start with tag name, otherwise by defult it selects all the elements in the form by using defualt […]

JqueryUI Accordion Example

jquery-ui

The jQueryUI provides collapsible widget called accordion is a view of hierarchy so that only the roots of each branch are visible. It is widely used to manage large content and navigation lists on the website. We can easily create collapsing division within a webpage which is used to build accordion navigation, content boxes etc. […]

JQueryUI Droppable Widget Example

jquery-ui

The jQueryUI Droppable plugin triggers when an accepted draggable is dropped ‘over’ this droppable. The interaction of droppable depends on draggable element. In general we can say that, target region for draggable element is droppable. We can create target on the page for dropping draggable elements. also read: JQuery Keydown, Keypress and Keyup JQUery Setting […]

JQueryUI Resizable Widget

jquery-ui

The jQueryUI provides property called resizable() method which specifies whether element can be resizable or not by the user. The resizable plugin makes selected elements resizable by using icon which is at the bottom right of the element to resize. also read: JQuery Keydown, Keypress and Keyup JQUery Setting Drop Down Value JQuery prepend() and […]

JqueryUI Sortable Example

jquery-ui

The sortable is a flexible, sorting plugin for jQueryUI which allows rearranging the elements into a meaningful order so that we can analyze it more effectively. It enables sorting of elements by using drag and drop functionality to place the new element within the list and other elements will adjust to fit. The sortable event […]

TreeMap Class Example

java-thumbnail

The TreeMap class creates maps stored in a tree structure. It stores the key/ value pairs in a sorted order efficiently. The TreeMap class extends AbstractMap and implements the NavigableMap interface. It is a red-black tree based implementation. TreeMap is a sorted order collection, which is sorted according to the natural key or by providing […]

Java InvalidPropertiesFormatException Example

java-thumbnail

When we are using the collection of properties, if the input does not conform to the valid XML document type with the appropriate properties specification at that time an exception is thrown called InvalidPropertiesFormatException, to indicate operation could not be completed. This example explains about that exception. Java InvalidPropertiesFormatException Class Declaration In the above declaration, […]

JqueryUI Autocomplete Widget

jquery-ui

The Autocomplete is important part of the modern rich web interface. The jQueryUI Autocomplete widget is a functionality which enables users to find and select from a list of values as they type. It offers suggestions related to the search item in a text input field. For autocomplete mechanism, data can be static source and […]

JQuery getScript Example

jquery

The jQuery getScript() method loads and executes the JavaScript file from remote location using HTTP GET request, then execute it. It is often called as shorthand method for inserting JavaScript into the web page. The main advantage of using getScript is that, it loads content on run time which better than including <script> tag in […]